mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-26 02:03:49 +02:00
refactor dialog commands func
This commit is contained in:
@@ -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') },
|
||||
|
||||
Reference in New Issue
Block a user