mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
Fix InviteGroupDialog, lint
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<template>
|
||||
<!DOCTYPE html>
|
||||
<el-config-provider :locale="currentLocale">
|
||||
<!-- macOS Custom Title Bar -->
|
||||
<MacOSTitleBar></MacOSTitleBar>
|
||||
|
||||
<div
|
||||
@@ -64,6 +63,8 @@
|
||||
|
||||
<GroupMemberModerationDialog></GroupMemberModerationDialog>
|
||||
|
||||
<InviteGroupDialog></InviteGroupDialog>
|
||||
|
||||
<FullscreenImagePreview></FullscreenImagePreview>
|
||||
|
||||
<PreviousInstancesInfoDialog></PreviousInstancesInfoDialog>
|
||||
@@ -144,6 +145,7 @@
|
||||
import Sidebar from './views/Sidebar/Sidebar.vue';
|
||||
import Tools from './views/Tools/Tools.vue';
|
||||
import UserDialog from './components/dialogs/UserDialog/UserDialog.vue';
|
||||
import InviteGroupDialog from './components/dialogs/InviteGroupDialog.vue';
|
||||
import VRCXUpdateDialog from './components/dialogs/VRCXUpdateDialog.vue';
|
||||
import VRChatConfigDialog from './views/Settings/dialogs/VRChatConfigDialog.vue';
|
||||
import WorldDialog from './components/dialogs/WorldDialog/WorldDialog.vue';
|
||||
@@ -153,7 +155,6 @@
|
||||
|
||||
console.log(`isLinux: ${LINUX}`);
|
||||
|
||||
// Simple macOS detection
|
||||
const isMacOS = computed(() => {
|
||||
return navigator.platform.indexOf('Mac') > -1;
|
||||
});
|
||||
|
||||
@@ -13,12 +13,10 @@
|
||||
<script setup>
|
||||
import { computed, onMounted } from 'vue';
|
||||
|
||||
// Simple macOS detection
|
||||
const isMacOS = computed(() => {
|
||||
return navigator.platform.indexOf('Mac') > -1;
|
||||
});
|
||||
|
||||
// Make title bar draggable
|
||||
onMounted(() => {
|
||||
if (isMacOS.value) {
|
||||
const titleBar = document.querySelector('.macos-title-bar');
|
||||
|
||||
@@ -1113,7 +1113,6 @@
|
||||
</el-tabs>
|
||||
</div>
|
||||
<GroupPostEditDialog :dialog-data="groupPostEditDialog" :selected-gallery-file="selectedGalleryFile" />
|
||||
<InviteGroupDialog />
|
||||
<PreviousInstancesGroupDialog
|
||||
:previous-instances-group-dialog="previousInstancesGroupDialog"
|
||||
:current-user="currentUser" />
|
||||
@@ -1172,7 +1171,6 @@
|
||||
import { groupRequest } from '../../../api';
|
||||
|
||||
import GroupPostEditDialog from './GroupPostEditDialog.vue';
|
||||
import InviteGroupDialog from '../InviteGroupDialog.vue';
|
||||
import PreviousInstancesGroupDialog from '../PreviousInstancesDialog/PreviousInstancesGroupDialog.vue';
|
||||
|
||||
import * as workerTimers from 'worker-timers';
|
||||
|
||||
@@ -183,10 +183,8 @@
|
||||
const { t } = useI18n();
|
||||
|
||||
watch(
|
||||
() => {
|
||||
return inviteGroupDialog.value.visible;
|
||||
},
|
||||
(value) => async () => {
|
||||
() => inviteGroupDialog.value.visible,
|
||||
async (value) => {
|
||||
if (value) {
|
||||
inviteGroupDialog.value.groupId = await configRepository.getString('inviteGroupLastGroup', '');
|
||||
initDialog();
|
||||
|
||||
@@ -1677,7 +1677,6 @@
|
||||
@closeInviteDialog="closeInviteDialog" />
|
||||
<PreviousInstancesUserDialog v-model:previous-instances-user-dialog="previousInstancesUserDialog" />
|
||||
<template v-if="userDialog.visible">
|
||||
<InviteGroupDialog />
|
||||
<SocialStatusDialog
|
||||
:social-status-dialog="socialStatusDialog"
|
||||
:social-status-history-table="socialStatusHistoryTable" />
|
||||
@@ -1790,7 +1789,6 @@
|
||||
import { database } from '../../../service/database';
|
||||
import { userDialogGroupSortingOptions } from '../../../shared/constants';
|
||||
|
||||
import InviteGroupDialog from '../InviteGroupDialog.vue';
|
||||
import SendInviteDialog from '../InviteDialog/SendInviteDialog.vue';
|
||||
|
||||
const BioDialog = defineAsyncComponent(() => import('./BioDialog.vue'));
|
||||
|
||||
Reference in New Issue
Block a user