adminforth 1.13.0-next.34 → 1.13.0-next.36
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.
|
@@ -98,4 +98,17 @@ onUnmounted(() => {
|
|
|
98
98
|
modal.value?.destroy();
|
|
99
99
|
})
|
|
100
100
|
|
|
101
|
+
function open() {
|
|
102
|
+
modal.value?.show();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function close() {
|
|
106
|
+
modal.value?.hide();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
defineExpose({
|
|
110
|
+
open: open,
|
|
111
|
+
close: close,
|
|
112
|
+
})
|
|
113
|
+
|
|
101
114
|
</script>
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
{ label: t('Yes'), value: true },
|
|
176
176
|
{ label: t('No'), value: false },
|
|
177
177
|
];
|
|
178
|
-
if (!column.required[props.mode]) {
|
|
178
|
+
if (!column.required[props.mode] && !column.isArray?.enabled) {
|
|
179
179
|
options.push({ label: t('Unset'), value: null });
|
|
180
180
|
}
|
|
181
181
|
return options;
|
|
@@ -276,7 +276,7 @@ const columnOptions = computedAsync(async () => {
|
|
|
276
276
|
},
|
|
277
277
|
});
|
|
278
278
|
|
|
279
|
-
if (!column.required[props.source]) list.items.push({ value: null, label: column.foreignResource.unsetLabel });
|
|
279
|
+
if (!column.required[props.source] && !column.isArray?.enabled) list.items.push({ value: null, label: column.foreignResource.unsetLabel });
|
|
280
280
|
|
|
281
281
|
return { [column.name]: list.items };
|
|
282
282
|
}
|