chore(frontend): add force cloud backup button for debugging
This commit is contained in:
parent
86ad771221
commit
1e1eea521e
|
@ -131,6 +131,10 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
<MkButton @click="forceCloudBackup">Force cloud backup</MkButton>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
<template v-if="$i.policies.chatAvailability !== 'unavailable'">
|
<template v-if="$i.policies.chatAvailability !== 'unavailable'">
|
||||||
<MkButton @click="readAllChatMessages">Read all chat messages</MkButton>
|
<MkButton @click="readAllChatMessages">Read all chat messages</MkButton>
|
||||||
|
|
||||||
|
@ -167,6 +171,7 @@ import { signout } from '@/signout.js';
|
||||||
import { migrateOldSettings } from '@/pref-migrate.js';
|
import { migrateOldSettings } from '@/pref-migrate.js';
|
||||||
import { hideAllTips as _hideAllTips, resetAllTips as _resetAllTips } from '@/tips.js';
|
import { hideAllTips as _hideAllTips, resetAllTips as _resetAllTips } from '@/tips.js';
|
||||||
import { suggestReload } from '@/utility/reload-suggest.js';
|
import { suggestReload } from '@/utility/reload-suggest.js';
|
||||||
|
import { cloudBackup } from '@/preferences/utility.js';
|
||||||
|
|
||||||
const $i = ensureSignin();
|
const $i = ensureSignin();
|
||||||
|
|
||||||
|
@ -224,6 +229,11 @@ function readAllChatMessages() {
|
||||||
os.apiWithDialog('chat/read-all', {});
|
os.apiWithDialog('chat/read-all', {});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function forceCloudBackup() {
|
||||||
|
await cloudBackup();
|
||||||
|
os.success();
|
||||||
|
}
|
||||||
|
|
||||||
const headerActions = computed(() => []);
|
const headerActions = computed(() => []);
|
||||||
|
|
||||||
const headerTabs = computed(() => []);
|
const headerTabs = computed(() => []);
|
||||||
|
|
Loading…
Reference in New Issue