mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-26 18:23:47 +02:00
improve ui
This commit is contained in:
@@ -120,8 +120,7 @@
|
||||
const router = useRouter();
|
||||
|
||||
const appearanceSettingsStore = useAppearanceSettingsStore();
|
||||
const { navWidth, isNavCollapsed, showStatusBar } =
|
||||
storeToRefs(appearanceSettingsStore);
|
||||
const { navWidth, isNavCollapsed, showStatusBar } = storeToRefs(appearanceSettingsStore);
|
||||
|
||||
const sidebarOpen = computed(() => !isNavCollapsed.value);
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
:table-style="tableHeightStyle"
|
||||
:page-sizes="pageSizes"
|
||||
:total-items="filteredAvatars.length"
|
||||
:loading="isLoading"
|
||||
:on-page-size-change="handlePageSizeChange"
|
||||
:on-row-click="handleRowClick"
|
||||
:row-class="getRowClass"
|
||||
@@ -347,7 +348,18 @@
|
||||
if (currentUser.value.currentAvatar === avatarId) {
|
||||
return;
|
||||
}
|
||||
selectAvatarWithoutConfirmation(avatarId);
|
||||
const avatar = avatars.value.find((a) => a.id === avatarId);
|
||||
const avatarName = avatar?.name || avatarId;
|
||||
modalStore
|
||||
.confirm({
|
||||
title: t('confirm.title'),
|
||||
description: `${t('confirm.select_avatar')}\n${avatarName}`
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
if (ok) {
|
||||
selectAvatarWithoutConfirmation(avatarId);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user