From 16e77645684c8548a162b0d3ebe2afbabbfc1b89 Mon Sep 17 00:00:00 2001 From: Daniel James Smith Date: Thu, 30 Sep 2021 16:15:18 +0200 Subject: [PATCH] Hide folder selection when vault is locked --- src/notification/bar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notification/bar.js b/src/notification/bar.js index 6bfa9a2249..6a43cad20b 100644 --- a/src/notification/bar.js +++ b/src/notification/bar.js @@ -40,7 +40,7 @@ document.addEventListener('DOMContentLoaded', () => { } else { document.querySelector('#template-add .add-save').textContent = i18n.notificationAddSave; document.querySelector('#template-add .never-save').textContent = i18n.notificationNeverSave; - document.querySelector('#template-add .select-folder').style.display = 'initial'; + document.querySelector('#template-add .select-folder').style.display = isVaultLocked ? 'none' : 'initial'; document.querySelector('#template-add .select-folder').setAttribute('aria-label', i18n.folder); document.querySelector('#template-change .change-save').textContent = i18n.notificationChangeSave; }