mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-07-28 01:24:39 +02:00
wip
This commit is contained in:
@@ -1606,6 +1606,8 @@ _preferencesBackup:
|
||||
autoSync: "デバイス間同期"
|
||||
autoSync_description: "サーバーに保存された設定を自動で取得し、別のデバイスでの変更と同期できるようにします"
|
||||
forceSync: "今すぐ同期"
|
||||
autoSyncAreYouSure: "デバイス間の同期をオンにしますか?"
|
||||
autoSyncAreYouSure_description: "通信量が増えるため、他のデバイスとこのプロファイルを共有する予定がない場合はオンにしないでください。"
|
||||
|
||||
_accountSettings:
|
||||
requireSigninToViewContents: "コンテンツの表示にログインを必須にする"
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -6371,6 +6371,14 @@ export interface Locale extends ILocale {
|
||||
* 今すぐ同期
|
||||
*/
|
||||
"forceSync": string;
|
||||
/**
|
||||
* デバイス間の同期をオンにしますか?
|
||||
*/
|
||||
"autoSyncAreYouSure": string;
|
||||
/**
|
||||
* 通信量が増えるため、他のデバイスとこのプロファイルを共有する予定がない場合はオンにしないでください。
|
||||
*/
|
||||
"autoSyncAreYouSure_description": string;
|
||||
};
|
||||
"_accountSettings": {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user