mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
add dashboard
This commit is contained in:
12
dashboard/composables/useBarCardDialog.ts
Normal file
12
dashboard/composables/useBarCardDialog.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
|
||||
export function useBarCardDialog() {
|
||||
const showDialog = useState('show-bar-card-dialog', () => false);
|
||||
const dialogBarData = useState<any[]>('bar-card-dialog-data', () => []);
|
||||
const isDataLoading = useState('bar-card-dialog-data-loading', () => false);
|
||||
function closeDialog() {
|
||||
showDialog.value = false;
|
||||
}
|
||||
return { showDialog, dialogBarData, closeDialog, isDataLoading };
|
||||
}
|
||||
Reference in New Issue
Block a user