mirror of https://github.com/nextcloud/bookmarks
Remember whether user has seen scraping settings notification
fixes #1693 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
30e1e5c7ab
commit
02a1a4075e
|
@ -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.'))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue