1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-28 01:24:39 +02:00
This commit is contained in:
syuilo
2026-07-26 10:20:41 +09:00
parent 7daec62680
commit 9b2f90f681
3 changed files with 21 additions and 1 deletions

View File

@@ -1606,6 +1606,8 @@ _preferencesBackup:
autoSync: "デバイス間同期"
autoSync_description: "サーバーに保存された設定を自動で取得し、別のデバイスでの変更と同期できるようにします"
forceSync: "今すぐ同期"
autoSyncAreYouSure: "デバイス間の同期をオンにしますか?"
autoSyncAreYouSure_description: "通信量が増えるため、他のデバイスとこのプロファイルを共有する予定がない場合はオンにしないでください。"
_accountSettings:
requireSigninToViewContents: "コンテンツの表示にログインを必須にする"

View File

@@ -47,8 +47,18 @@ export function getPreferencesProfileMenu(): MenuItem[] {
const autoSyncEnabled = ref(store.s.enablePreferencesAutoCloudSync);
watch(autoSyncEnabled, () => {
watch(autoSyncEnabled, async () => {
if (autoSyncEnabled.value) {
const confirm = await os.confirm({
type: 'warning',
title: i18n.ts._preferencesBackup.autoSyncAreYouSure,
text: i18n.ts._preferencesBackup.autoSyncAreYouSure_description,
});
if (confirm.canceled) {
autoSyncEnabled.value = false;
return;
}
store.set('enablePreferencesAutoCloudSync', true);
} else {
store.set('enablePreferencesAutoCloudSync', false);

View File

@@ -6371,6 +6371,14 @@ export interface Locale extends ILocale {
* 今すぐ同期
*/
"forceSync": string;
/**
* デバイス間の同期をオンにしますか?
*/
"autoSyncAreYouSure": string;
/**
* 通信量が増えるため、他のデバイスとこのプロファイルを共有する予定がない場合はオンにしないでください。
*/
"autoSyncAreYouSure_description": string;
};
"_accountSettings": {
/**