File tree Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ export function useAppLayout() {
56
56
route : route ( 'profile.edit' ) ,
57
57
lucideIcon : Settings ,
58
58
} ,
59
+ {
60
+ separator : true
61
+ } ,
59
62
{
60
63
label : 'Log Out' ,
61
64
lucideIcon : LogOut ,
Original file line number Diff line number Diff line change @@ -161,8 +161,19 @@ export function usePaginatedData(
161
161
if ( ! filter ?. value || ! filter ?. matchMode ) {
162
162
return ;
163
163
}
164
- if ( filter . matchMode == FilterMatchMode . DATE_IS ) {
164
+ if (
165
+ filter . matchMode == FilterMatchMode . DATE_IS ||
166
+ filter . matchMode == FilterMatchMode . DATE_IS_NOT ||
167
+ filter . matchMode == FilterMatchMode . DATE_BEFORE ||
168
+ filter . matchMode == FilterMatchMode . DATE_AFTER
169
+ ) {
165
170
filters . value [ key ] . value = new Date ( filter . value ) ;
171
+ } else if ( filter . matchMode == FilterMatchMode . BETWEEN ) {
172
+ filter . value . forEach ( ( value : any , index : number ) => {
173
+ if ( typeof value === 'string' ) {
174
+ filter . value [ index ] = new Date ( value ) ;
175
+ }
176
+ } ) ;
166
177
} else if (
167
178
typeof filter . value === 'string' &&
168
179
filter . value !== '' &&
@@ -208,6 +219,9 @@ export function usePaginatedData(
208
219
if ( urlParams ?. page ) {
209
220
pagination . value . page = parseInt ( urlParams . page ) ;
210
221
}
222
+ if ( urlParams ?. rows ) {
223
+ pagination . value . rows = parseInt ( urlParams . rows ) ;
224
+ }
211
225
}
212
226
213
227
onMounted ( ( ) => {
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ const toggleMobileUserMenu = (event) => {
56
56
id =" mobile-user-menu-btn"
57
57
:label =" page.props.auth.user.name"
58
58
severity =" secondary"
59
+ size =" large"
59
60
pt:root:class =" flex flex-row-reverse justify-between"
60
61
@click =" toggleMobileUserMenu($event)"
61
62
>
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ const toggleMobileUserMenu = (event) => {
55
55
:label =" page.props.auth.user.name"
56
56
pt:root:class =" flex flex-row-reverse justify-between"
57
57
severity =" secondary"
58
+ size =" large"
58
59
@click =" toggleMobileUserMenu($event)"
59
60
>
60
61
<template #icon >
You can’t perform that action at this time.
0 commit comments