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