synchronize localStorage properties to preference profile
This commit is contained in:
parent
c1af8dfb7f
commit
3d3846ec85
6 changed files with 105 additions and 49 deletions
|
|
@ -53,6 +53,7 @@ import { i18n } from '@/i18n.js';
|
|||
import * as os from '@/os.js';
|
||||
import { miLocalStorage } from '@/local-storage.js';
|
||||
import { instance } from '@/instance.js';
|
||||
import { prefer } from '@/preferences.js';
|
||||
|
||||
const emit = defineEmits<{
|
||||
(ev: 'closed'): void;
|
||||
|
|
@ -66,6 +67,7 @@ function close() {
|
|||
}
|
||||
|
||||
function neverShow() {
|
||||
prefer.commit('neverShowDonationInfo', 'true');
|
||||
miLocalStorage.setItem('neverShowDonationInfo', 'true');
|
||||
close();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -557,6 +557,7 @@ async function toggleLocalOnly() {
|
|||
if (confirm.result === 'no') return;
|
||||
|
||||
if (confirm.result === 'neverShow') {
|
||||
prefer.commit('neverShowLocalOnlyInfo', 'true');
|
||||
miLocalStorage.setItem('neverShowLocalOnlyInfo', 'true');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue