This commit is contained in:
pa
2026-02-18 18:14:21 +09:00
parent a13b197d06
commit 7288995c73
22 changed files with 198 additions and 110 deletions
+1 -1
View File
@@ -1641,7 +1641,7 @@ export const useFriendStore = defineStore('Friend', () => {
modalStore
.confirm({
description: t('confirm.unfriend'),
title: 'Confirm'
title: t('confirm.title')
})
.then(async ({ ok }) => {
if (!ok) return;
+5 -5
View File
@@ -1,6 +1,7 @@
import { reactive, ref, shallowRef, watch } from 'vue';
import { defineStore } from 'pinia';
import { toast } from 'vue-sonner';
import { useI18n } from 'vue-i18n';
import { useRouter } from 'vue-router';
import dayjs from 'dayjs';
@@ -56,6 +57,7 @@ export const useGameLogStore = defineStore('GameLog', () => {
const modalStore = useModalStore();
const router = useRouter();
const { t } = useI18n();
const state = reactive({
lastLocationAvatarList: new Map()
@@ -1420,16 +1422,14 @@ export const useGameLogStore = defineStore('GameLog', () => {
async function disableGameLogDialog() {
if (gameStore.isGameRunning) {
toast.error(
'VRChat needs to be closed before this option can be changed'
);
toast.error(t('message.gamelog.vrchat_must_be_closed'));
return;
}
if (!advancedSettingsStore.gameLogDisabled) {
modalStore
.confirm({
description: 'Continue? Disable GameLog',
title: 'Confirm'
description: t('confirm.disable_gamelog'),
title: t('confirm.title')
})
.then(({ ok }) => {
if (!ok) return;
+4 -4
View File
@@ -583,8 +583,8 @@ export const useGroupStore = defineStore('Group', () => {
function leaveGroupPrompt(groupId) {
modalStore
.confirm({
description: 'Are you sure you want to leave this group?',
title: 'Confirm'
description: t('confirm.leave_group'),
title: t('confirm.title')
})
.then(({ ok }) => {
if (!ok) return;
@@ -617,7 +617,7 @@ export const useGroupStore = defineStore('Group', () => {
})
.then((args) => {
handleGroupMemberProps(args);
toast.success('Group visibility updated');
toast.success(t('message.group.visibility_updated'));
return args;
});
}
@@ -629,7 +629,7 @@ export const useGroupStore = defineStore('Group', () => {
})
.then((args) => {
handleGroupMemberProps(args);
toast.success('Group subscription updated');
toast.success(t('message.group.subscription_updated'));
return args;
});
}
+1 -1
View File
@@ -2531,7 +2531,7 @@ export const useNotificationStore = defineStore('Notification', () => {
handleNotificationHide({ params });
notificationRequest.hideNotificationV2(params.notificationId);
console.error('Notification response failed', err);
toast.error('Error');
toast.error(t('message.error'));
});
}