Merge branch 'dev' into feat/uploads-85-after-reset
This commit is contained in:
No files matched your search
@@ -19,7 +19,17 @@ export function useQueryCRUDMode(key: string = 'mode') {
|
||||
})
|
||||
|
||||
const goToEntry = () => (mode.value = 'entry')
|
||||
const backToList = () =>(mode.value = 'list')
|
||||
const backToList = () => {
|
||||
router.push({
|
||||
path: route.path,
|
||||
query: {
|
||||
...route.query,
|
||||
mode: 'list',
|
||||
// HAPUS record-id
|
||||
'record-id': undefined,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
return { mode, goToEntry, backToList }
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ export interface PageOperationPermission {
|
||||
canDelete: boolean
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Check if user has access to a page
|
||||
*/
|
||||
@@ -59,5 +60,6 @@ export function useRBAC() {
|
||||
hasUpdateAccess,
|
||||
hasDeleteAccess,
|
||||
getPagePermissions,
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user