add translator notice to jp guide

This commit is contained in:
Matteias Collet 2021-12-28 16:37:30 +00:00 committed by GitHub
parent 2786327ab6
commit dd2e9df023
2 changed files with 4 additions and 2 deletions

View file

@ -44,7 +44,7 @@ export default {
}, },
mounted() { mounted() {
try { try {
if (localStorage.getItem('notice-dismissed') !== 'y') { if (localStorage.getItem('jp-translator-notice-dismissed') !== 'y') {
this.dismissed = false; this.dismissed = false;
} }
} catch {} } catch {}
@ -52,7 +52,7 @@ export default {
methods: { methods: {
onDismiss() { onDismiss() {
try { try {
localStorage.setItem('notice-dismissed', 'y'); localStorage.setItem('jp-translator-notice-dismissed', 'y');
this.dismissed = true; this.dismissed = true;
} catch {} } catch {}
}, },

View file

@ -2,6 +2,8 @@
sidebar: auto sidebar: auto
--- ---
<JPTranslatorNotice />
<!-- prettier-ignore-start --> <!-- prettier-ignore-start -->
# 導入ガイド # 導入ガイド