mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 14:23:51 +02:00
Clean up
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
<el-button
|
||||
v-else
|
||||
style="display: block; width: 100%; margin: 10px 0; white-space: initial; height: auto"
|
||||
:disabled="!isLocalUserVrcplusSupporter"
|
||||
:disabled="!isLocalUserVrcPlusSupporter"
|
||||
@click="addLocalAvatarFavorite(favoriteDialog.objectId, group)">
|
||||
{{ group }} ({{ getLocalAvatarFavoriteGroupLength(group) }})
|
||||
</el-button>
|
||||
@@ -94,7 +94,7 @@
|
||||
removeLocalWorldFavorite,
|
||||
deleteFavoriteNoConfirm
|
||||
} = favoriteStore;
|
||||
const { currentUser } = storeToRefs(useUserStore());
|
||||
const { isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||
|
||||
const favoriteDialogIndex = ref(2000);
|
||||
const groups = ref([]);
|
||||
@@ -107,8 +107,6 @@
|
||||
}
|
||||
});
|
||||
|
||||
const isLocalUserVrcplusSupporter = computed(() => currentUser.value.$isVRCPlus);
|
||||
|
||||
watch(
|
||||
() => favoriteDialog.value.visible,
|
||||
(value) => {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
type="default"
|
||||
size="small"
|
||||
:icon="Upload"
|
||||
:disabled="!currentUser.$isVRCPlus"
|
||||
:disabled="!isLocalUserVrcPlusSupporter"
|
||||
@click="displayGalleryUpload"
|
||||
>{{ t('dialog.gallery_select.upload') }}</el-button
|
||||
>
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
const { galleryTable } = storeToRefs(useGalleryStore());
|
||||
const { refreshGalleryTable, handleGalleryImageAdd } = useGalleryStore();
|
||||
const { currentUser } = storeToRefs(useUserStore());
|
||||
const { isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||
|
||||
const props = defineProps({
|
||||
gallerySelectDialog: {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
width="800px"
|
||||
append-to-body
|
||||
@close="cancelSendInvite">
|
||||
<template v-if="currentUser.$isVRCPlus">
|
||||
<template v-if="isLocalUserVrcPlusSupporter">
|
||||
<!-- <template v-if="gallerySelectDialog.selectedFileId">-->
|
||||
<!-- <div style="display: inline-block; flex: none; margin-right: 5px">-->
|
||||
<!-- <el-popover placement="right" :width="500px" trigger="click">-->
|
||||
@@ -104,7 +104,7 @@
|
||||
const { refreshInviteMessageTableData } = useInviteStore();
|
||||
const { inviteMessageTable } = storeToRefs(useInviteStore());
|
||||
const { inviteImageUpload } = useGalleryStore();
|
||||
const { currentUser } = storeToRefs(useUserStore());
|
||||
const { isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||
|
||||
const props = defineProps({
|
||||
sendInviteDialogVisible: {
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item :label="t('dialog.new_instance.display_name')">
|
||||
<el-input
|
||||
:disabled="!isLocalUserVrcplusSupporter"
|
||||
:disabled="!isLocalUserVrcPlusSupporter"
|
||||
v-model="newInstanceDialog.displayName"
|
||||
size="small"
|
||||
@click="$event.target.tagName === 'INPUT' && $event.target.select()"
|
||||
@@ -515,7 +515,7 @@
|
||||
const { lastLocation } = storeToRefs(useLocationStore());
|
||||
const { showLaunchDialog, tryOpenInstanceInVrc } = useLaunchStore();
|
||||
const { createNewInstance } = useInstanceStore();
|
||||
const { currentUser } = storeToRefs(useUserStore());
|
||||
const { currentUser, isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||
const { canOpenInstanceInGame } = useInviteStore();
|
||||
|
||||
const newInstanceDialogIndex = ref(2000);
|
||||
@@ -564,8 +564,6 @@
|
||||
}
|
||||
);
|
||||
|
||||
const isLocalUserVrcplusSupporter = computed(() => currentUser.value.$isVRCPlus);
|
||||
|
||||
initializeNewInstanceDialog();
|
||||
|
||||
function closeInviteDialog() {
|
||||
@@ -627,7 +625,7 @@
|
||||
D.strict = false;
|
||||
D.shortName = '';
|
||||
D.secureOrShortName = '';
|
||||
if (!isLocalUserVrcplusSupporter.value) {
|
||||
if (!isLocalUserVrcPlusSupporter.value) {
|
||||
D.displayName = '';
|
||||
}
|
||||
const args = await groupRequest.getGroupPermissions({ userId: currentUser.value.id });
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
width="800px"
|
||||
append-to-body
|
||||
@close="cancelSendInviteRequest">
|
||||
<template v-if="currentUser.$isVRCPlus">
|
||||
<template v-if="isLocalUserVrcPlusSupporter">
|
||||
<input class="inviteImageUploadButton" type="file" accept="image/*" @change="inviteImageUpload" />
|
||||
</template>
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
const { inviteRequestMessageTable } = storeToRefs(inviteStore);
|
||||
const galleryStore = useGalleryStore();
|
||||
const { inviteImageUpload } = galleryStore;
|
||||
const { currentUser } = storeToRefs(useUserStore());
|
||||
const { isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||
|
||||
const props = defineProps({
|
||||
sendInviteRequestDialogVisible: {
|
||||
|
||||
@@ -1340,7 +1340,7 @@
|
||||
{{ userGroups.remainingGroups.length }}
|
||||
<template v-if="currentUser.id === userDialog.id">
|
||||
/
|
||||
<template v-if="currentUser.$isVRCPlus">
|
||||
<template v-if="isLocalUserVrcPlusSupporter">
|
||||
{{ cachedConfig?.constants?.GROUPS?.MAX_JOINED_PLUS }}
|
||||
</template>
|
||||
<template v-else>
|
||||
@@ -1805,7 +1805,7 @@
|
||||
|
||||
const { hideUserNotes, hideUserMemos } = storeToRefs(useAppearanceSettingsStore());
|
||||
const { avatarRemoteDatabase } = storeToRefs(useAdvancedSettingsStore());
|
||||
const { userDialog, languageDialog, currentUser } = storeToRefs(useUserStore());
|
||||
const { userDialog, languageDialog, currentUser, isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||
const { cachedUsers, showUserDialog, sortUserDialogAvatars, refreshUserDialogAvatars, refreshUserDialogTreeData } =
|
||||
useUserStore();
|
||||
const { favoriteLimits } = storeToRefs(useFavoriteStore());
|
||||
|
||||
Reference in New Issue
Block a user