|
22 | 22 | :tooltip="t('table_delete')"
|
23 | 23 | tooltip-as-text
|
24 | 24 | tooltip-position="bottom"
|
25 |
| - :theme="[eColors.DANGER, themeValues[0]]" |
| 25 | + :theme="dangerThemeValues" |
26 | 26 | :disabled="!selectedNodes.some(([n]) => n)"
|
27 | 27 | @click="deleteNodesAndRefresh"
|
28 | 28 | >
|
|
210 | 210 | <Dropdown
|
211 | 211 | class="flx --flxRow --flx-center"
|
212 | 212 | :position="['left', 'center']"
|
213 |
| - :theme="theme || themeValues" |
214 | 213 | :size="size"
|
| 214 | + v-bind="{ theme: theme || themeValues, ...modalProps }" |
215 | 215 | >
|
216 | 216 | <template #toggle="{ setModel }">
|
217 | 217 | <ActionLink
|
| 218 | + class="--pX-10" |
218 | 219 | :aria-label="t('table_options')"
|
219 | 220 | :title="t('table_options')"
|
220 | 221 | :theme="theme || themeValues"
|
|
227 | 228 | </ActionLink>
|
228 | 229 | </template>
|
229 | 230 | <template #default="{ setModel, invertedTheme }">
|
230 |
| - <ul class="flx --flxColumn --flx-start-stretch --gap-5"> |
| 231 | + <ul |
| 232 | + class="flx --flxColumn --flx-start-stretch --gap-10" |
| 233 | + > |
231 | 234 | <li v-if="!!cloneNode">
|
232 | 235 | <ActionLink
|
233 | 236 | :theme="invertedTheme"
|
|
243 | 246 | </li>
|
244 | 247 | <li v-if="!!deleteNode">
|
245 | 248 | <ActionLink
|
246 |
| - :theme="[eColors.DANGER, invertedTheme[0]]" |
| 249 | + :theme="dangerThemeValues" |
247 | 250 | :size="size"
|
248 | 251 | :aria-label="t('table_delete')"
|
249 | 252 | @click="
|
|
351 | 354 | tProps,
|
352 | 355 | tSizeModifier,
|
353 | 356 | } from "@open-xamu-co/ui-common-types";
|
354 |
| - import { eColors, eSizes } from "@open-xamu-co/ui-common-enums"; |
| 357 | + import { eSizes } from "@open-xamu-co/ui-common-enums"; |
355 | 358 | import { toOption, useSwal, useI18n } from "@open-xamu-co/ui-common-helpers";
|
356 | 359 |
|
357 | 360 | import IconFa from "../icon/Fa.vue";
|
|
451 | 454 |
|
452 | 455 | const { t, tet } = useHelpers(useI18n);
|
453 | 456 | const Swal = useHelpers(useSwal);
|
454 |
| - const { themeClasses, themeValues } = useTheme(props); |
| 457 | + const { themeClasses, themeValues, dangerThemeValues } = useTheme(props); |
455 | 458 | const router = getCurrentInstance()?.appContext.config.globalProperties.$router;
|
456 | 459 | const { uuid } = useUUID();
|
457 | 460 |
|
|
0 commit comments