File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -533,7 +533,7 @@ async function deleteRecord(row: any) {
533
533
534
534
const actionLoadingStates = ref <Record <string | number , boolean >>({});
535
535
536
- async function startCustomAction(actionId : any , row : any ) {
536
+ async function startCustomAction(actionId : string , row : any ) {
537
537
actionLoadingStates .value [actionId ] = true ;
538
538
539
539
const data = await callAdminForthApi ({
Original file line number Diff line number Diff line change @@ -553,7 +553,7 @@ async function deleteRecord(row: any) {
553
553
554
554
const actionLoadingStates = ref <Record <string | number , boolean >>({});
555
555
556
- async function startCustomAction(actionId : any , row : any ) {
556
+ async function startCustomAction(actionId : string , row : any ) {
557
557
actionLoadingStates .value [actionId ] = true ;
558
558
559
559
const data = await callAdminForthApi ({
Original file line number Diff line number Diff line change 1
1
<template >
2
- <template v-if =" threeDotsDropdownItems ?.length || customActions ?.length || (bulkActions ?.some ((action : any ) => action .showInThreeDotsDropdown ))" >
2
+ <template v-if =" threeDotsDropdownItems ?.length || customActions ?.length || (bulkActions ?.some ((action : AdminForthBulkActionCommon ) => action .showInThreeDotsDropdown ))" >
3
3
<button
4
4
data-dropdown-toggle =" listThreeDotsDropdown"
5
5
class =" flex items-center py-2 px-2 text-sm font-medium text-lightThreeDotsMenuIconDots focus:outline-none bg-lightThreeDotsMenuIconBackground rounded border border-lightThreeDotsMenuIconBackgroundBorder hover:bg-lightThreeDotsMenuIconBackgroundHover hover:text-lightThreeDotsMenuIconDotsHover focus:z-10 focus:ring-4 focus:ring-lightThreeDotsMenuIconFocus dark:focus:ring-darkThreeDotsMenuIconFocus dark:bg-darkThreeDotsMenuIconBackground dark:text-darkThreeDotsMenuIconDots dark:border-darkThreeDotsMenuIconBackgroundBorder dark:hover:text-darkThreeDotsMenuIconDotsHover dark:hover:bg-darkThreeDotsMenuIconBackgroundHover rounded-default"
14
14
id =" listThreeDotsDropdown"
15
15
class =" z-20 hidden bg-lightThreeDotsMenuBodyBackground divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-darkThreeDotsMenuBodyBackground dark:divide-gray-600" >
16
16
<ul class =" py-2 text-sm text-lightThreeDotsMenuBodyText dark:text-darkThreeDotsMenuBodyText" aria-labelledby =" dropdownMenuIconButton" >
17
- <li v-for =" item in threeDotsDropdownItems" >
17
+ <li v-for =" item in threeDotsDropdownItems" :key = " `dropdown-item-${item.file}` " >
18
18
<a href =" #"
19
19
class =" block px-4 py-2 hover:bg-lightThreeDotsMenuBodyBackgroundHover hover:text-lightThreeDotsMenuBodyTextHover dark:hover:bg-darkThreeDotsMenuBodyBackgroundHover dark:hover:text-darkThreeDotsMenuBodyTextHover"
20
20
:class =" {
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ const loading = ref(true);
147
147
const { t } = useI18n ();
148
148
const coreStore = useCoreStore ();
149
149
150
- const actionLoadingStates = ref <Record <string , boolean >>({})
150
+ const actionLoadingStates = ref <Record <string , boolean >>({});
151
151
152
152
const customActions = computed (() => {
153
153
return coreStore .resource ?.options ?.actions ?.filter (a => a .showIn ?.showThreeDotsMenu ) || [];
Original file line number Diff line number Diff line change @@ -358,8 +358,8 @@ export interface AdminForthResourceInputCommon {
358
358
/*
359
359
* Custom actions list. Actions available in show, edit and create views.
360
360
*/
361
- actions ?: AdminForthActionInput [ ] , // TODO check if type correct
362
-
361
+ actions ?: AdminForthActionInput [ ] ,
362
+
363
363
/**
364
364
* Custom bulk actions list. Bulk actions available in list view when user selects multiple records by
365
365
* using checkboxes.
You can’t perform that action at this time.
0 commit comments