adminforth 2.17.0-next.61 → 2.17.0-next.63
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.
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
class="min-w-5 min-h-5 text-lightSidebarIcons dark:text-darkSidebarIcons group-hover:text-lightSidebarIconsHover dark:group-hover:text-darkSidebarIconsHover transition-all duration-200 ease-in-out"
|
|
17
17
|
>
|
|
18
18
|
</component>
|
|
19
|
+
<IconFileImageOutline v-else
|
|
20
|
+
class="min-w-5 min-h-5 text-lightSidebarIcons dark:text-darkSidebarIcons group-hover:text-lightSidebarIconsHover dark:group-hover:text-darkSidebarIconsHover transition-all duration-200 ease-in-out"
|
|
21
|
+
/>
|
|
19
22
|
<div
|
|
20
23
|
class="overflow-hidden block ms-3 pr-4 text-left rtl:text-right transition-all duration-200 ease-in-out"
|
|
21
24
|
:class="{
|
|
@@ -57,6 +60,7 @@ import { getIcon } from '@/utils';
|
|
|
57
60
|
import { Tooltip } from '@/afcl';
|
|
58
61
|
import { ref, watch, computed } from 'vue';
|
|
59
62
|
import { useCoreStore } from '@/stores/core';
|
|
63
|
+
import { IconFileImageOutline } from '@iconify-prerendered/vue-flowbite';
|
|
60
64
|
|
|
61
65
|
const props = defineProps(['item', 'isChild', 'isSidebarIconOnly', 'isSidebarHovering']);
|
|
62
66
|
|
|
@@ -200,23 +200,25 @@ async function saveRecord() {
|
|
|
200
200
|
});
|
|
201
201
|
if (response?.error && response?.error !== 'Operation aborted by hook') {
|
|
202
202
|
showErrorTost(response.error);
|
|
203
|
-
}
|
|
204
|
-
saving.value = false;
|
|
205
|
-
if (route.query.returnTo) {
|
|
206
|
-
router.push(<string>route.query.returnTo);
|
|
207
203
|
} else {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
204
|
+
saving.value = false;
|
|
205
|
+
if (route.query.returnTo) {
|
|
206
|
+
router.push(<string>route.query.returnTo);
|
|
207
|
+
} else {
|
|
208
|
+
router.push({
|
|
209
|
+
name: 'resource-show',
|
|
210
|
+
params: {
|
|
211
|
+
resourceId: route.params.resourceId,
|
|
212
|
+
primaryKey: response.newRecordId
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
alert({
|
|
216
|
+
message: t('Record created successfully!'),
|
|
217
|
+
variant: 'success'
|
|
218
|
+
});
|
|
219
|
+
}
|
|
219
220
|
}
|
|
221
|
+
saving.value = false;
|
|
220
222
|
}
|
|
221
223
|
|
|
222
224
|
function scrollToInvalidField() {
|