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

View file

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