summaryrefslogtreecommitdiff
path: root/src/client/pages
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-12-30 10:15:16 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-12-30 10:15:16 +0900
commit3055e6d8c7c533018ca10de55c8cc803499eba48 (patch)
tree8136db90af1590a5668187cbe4cae023267a1118 /src/client/pages
parentTweak note collapse threshold (diff)
downloadmisskey-3055e6d8c7c533018ca10de55c8cc803499eba48.tar.gz
misskey-3055e6d8c7c533018ca10de55c8cc803499eba48.tar.bz2
misskey-3055e6d8c7c533018ca10de55c8cc803499eba48.zip
localeとthemeのキャッシュクリア実装
Diffstat (limited to 'src/client/pages')
-rw-r--r--src/client/pages/settings/index.vue8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/pages/settings/index.vue b/src/client/pages/settings/index.vue
index 05756716db..aa9fe27164 100644
--- a/src/client/pages/settings/index.vue
+++ b/src/client/pages/settings/index.vue
@@ -28,6 +28,9 @@
<FormLink :active="page === 'other'" replace to="/settings/other"><template #icon><Fa :icon="faEllipsisH"/></template>{{ $ts.other }}</FormLink>
</FormGroup>
<FormGroup>
+ <FormButton @click="clear">{{ $ts.clearCache }}</FormButton>
+ </FormGroup>
+ <FormGroup>
<FormButton @click="logout" danger>{{ $ts.logout }}</FormButton>
</FormGroup>
</FormBase>
@@ -126,6 +129,11 @@ export default defineComponent({
logout: () => {
signout();
},
+ clear: () => {
+ localStorage.removeItem('locale');
+ localStorage.removeItem('theme');
+ location.reload();
+ },
faPalette, faPlug, faUser, faListUl, faLock, faLaugh, faCommentSlash, faMusic, faBell, faCogs, faEllipsisH, faBan, faShareAlt, faLockOpen, faKey, faBoxes, faEnvelope,
};
},