adminforth 2.27.0-next.40 → 2.27.0-next.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -43,13 +43,17 @@
|
|
|
43
43
|
</div>
|
|
44
44
|
</div>
|
|
45
45
|
</li>
|
|
46
|
-
<li v-for="action in customActions" :key="action.id">
|
|
47
|
-
<div
|
|
46
|
+
<li v-for="(action, i) in customActions" :key="action.id">
|
|
47
|
+
<div
|
|
48
|
+
class="wrapper"
|
|
49
|
+
@click="injectedComponentClick(threeDotsDropdownItems ? threeDotsDropdownItems.length + i : i)"
|
|
50
|
+
>
|
|
48
51
|
<component
|
|
52
|
+
:ref="(el: any) => setComponentRef(el, threeDotsDropdownItems ? threeDotsDropdownItems.length + i : i)"
|
|
49
53
|
:is="(action.customComponent && getCustomComponent(formatComponent(action.customComponent))) || CallActionWrapper"
|
|
50
54
|
:meta="formatComponent(action.customComponent).meta"
|
|
51
55
|
@callAction="(payload? : Object) => handleActionClick(action, payload)"
|
|
52
|
-
>
|
|
56
|
+
] >
|
|
53
57
|
<a @click.prevent class="block">
|
|
54
58
|
<div class="flex items-center gap-2 hover:text-lightThreeDotsMenuBodyTextHover hover:bg-lightThreeDotsMenuBodyBackgroundHover dark:hover:bg-darkThreeDotsMenuBodyBackgroundHover dark:hover:text-darkThreeDotsMenuBodyTextHover">
|
|
55
59
|
<component
|
|
@@ -173,6 +177,7 @@ function startBulkAction(actionId: string) {
|
|
|
173
177
|
}
|
|
174
178
|
|
|
175
179
|
async function injectedComponentClick(index: number) {
|
|
180
|
+
console.log('Injected component click triggered for index:', index);
|
|
176
181
|
const componentRef = threeDotsDropdownItemsRefs.value[index];
|
|
177
182
|
if (componentRef && 'click' in componentRef) {
|
|
178
183
|
(componentRef as any).click?.();
|