mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
Fixes
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
</span>
|
||||
<span v-if="groupName" @click="showGroupDialog" class="cursor-pointer">({{ groupName }})</span>
|
||||
<TooltipWrapper v-if="isClosed" :content="t('dialog.user.info.instance_closed')">
|
||||
<AlertTriangle :class="['inline-block', 'ml-5']" style="color: lightcoral" />
|
||||
<AlertTriangle :class="['inline-block', 'ml-1']" style="color: lightcoral" />
|
||||
</TooltipWrapper>
|
||||
<Lock v-if="strict" style="display: inline-block; margin-left: 5px" />
|
||||
</span>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ref, watch } from 'vue';
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
import { removeFromArray } from '../shared/utils';
|
||||
import { router } from '../plugin/router';
|
||||
import { useAdvancedSettingsStore } from './settings/advanced';
|
||||
import { watchState } from '../service/watchState';
|
||||
|
||||
@@ -132,6 +132,7 @@ export const useAvatarProviderStore = defineStore('AvatarProvider', () => {
|
||||
}
|
||||
|
||||
function showAvatarProviderDialog() {
|
||||
router.push({ name: 'settings' });
|
||||
isAvatarProviderDialogVisible.value = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
SEARCH_LIMIT_MIN,
|
||||
TABLE_MAX_SIZE_MAX
|
||||
} from '../shared/constants';
|
||||
import { avatarRequest, worldRequest } from '../api';
|
||||
import {
|
||||
clearPiniaActionTrail,
|
||||
getPiniaActionTrail
|
||||
@@ -42,7 +43,6 @@ import { useUserStore } from './user';
|
||||
import { useVrcStatusStore } from './vrcStatus';
|
||||
import { useWorldStore } from './world';
|
||||
import { watchState } from '../service/watchState';
|
||||
import { worldRequest } from '../api';
|
||||
|
||||
import configRepository from '../service/config';
|
||||
|
||||
@@ -639,10 +639,28 @@ export const useVrcxStore = defineStore('Vrcx', () => {
|
||||
case 'local-favorite-world':
|
||||
console.log('local-favorite-world', commandArg);
|
||||
const [id, group] = commandArg.split(':');
|
||||
worldRequest.getCachedWorld({ worldId: id }).then((args1) => {
|
||||
if (!id || !group) {
|
||||
toast.error('Invalid local favorite world command');
|
||||
break;
|
||||
}
|
||||
worldRequest.getCachedWorld({ worldId: id }).then(() => {
|
||||
searchStore.directAccessWorld(id);
|
||||
favoriteStore.addLocalWorldFavorite(id, group);
|
||||
return args1;
|
||||
});
|
||||
break;
|
||||
case 'local-favorite-avatar':
|
||||
console.log('local-favorite-avatar', commandArg);
|
||||
const [avatarIdFav, avatarGroup] = commandArg.split(':');
|
||||
if (!avatarIdFav || !avatarGroup) {
|
||||
toast.error('Invalid local favorite avatar command');
|
||||
break;
|
||||
}
|
||||
avatarRequest.getAvatar({ avatarId: avatarIdFav }).then(() => {
|
||||
avatarStore.showAvatarDialog(avatarIdFav);
|
||||
favoriteStore.addLocalAvatarFavorite(
|
||||
avatarIdFav,
|
||||
avatarGroup
|
||||
);
|
||||
});
|
||||
break;
|
||||
case 'addavatardb':
|
||||
|
||||
Reference in New Issue
Block a user