Remember whether user has seen scraping settings notification

fixes #1693

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2022-02-15 15:09:26 +01:00
parent 30e1e5c7ab
commit 02a1a4075e
1 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,9 @@ export default {
const currentUser = getCurrentUser()
if (currentUser.isAdmin) {
const scrapingEnabled = await this.getSettingValue('privacy.enableScraping')
if (scrapingEnabled !== 'true') {
const alreadyShown = window.localStorage && window.localStorage.getItem('bookmarks.scrapingNoteShown')
if (scrapingEnabled !== 'true' && alreadyShown !== 'true') {
window.localStorage && window.localStorage.setItem('bookmarks.scrapingNoteShown', 'true')
this.$store.commit(mutations.SET_NOTIFICATION, t('bookmarks', 'Network access is disabled by default. Go to administrator settings for the bookmarks app to allow fetching previews and favicons.'))
}
}