refactor dialog commands func

This commit is contained in:
pa
2026-03-09 23:09:43 +09:00
parent ca57cd6590
commit 163b5b0127
9 changed files with 762 additions and 408 deletions

View File

@@ -385,7 +385,6 @@
import {
useAdvancedSettingsStore,
useAppearanceSettingsStore,
useFavoriteStore,
useGalleryStore,
useGameStore,
@@ -442,7 +441,9 @@
worldDialogCommand,
onFileChangeWorldImage,
onCropConfirmWorld,
copyWorldName
copyWorldName,
showWorldAllowedDomainsDialog,
registerCallbacks
} = useWorldDialogCommands(worldDialog, {
t,
toast,
@@ -456,6 +457,18 @@
showFullscreenImageDialog
});
registerCallbacks({
showSetWorldTagsDialog: () => {
isSetWorldTagsDialogVisible.value = true;
},
showWorldAllowedDomainsDialog: () => {
showWorldAllowedDomainsDialog();
},
showChangeWorldImageDialog: () => {
document.getElementById('WorldImageUploadButton').click();
}
});
const worldDialogTabs = computed(() => [
{ value: 'Instances', label: t('dialog.world.instances.header') },
{ value: 'Info', label: t('dialog.world.info.header') },