Hide folder selection when vault is locked

This commit is contained in:
Daniel James Smith 2021-09-30 16:15:18 +02:00
parent e0240c6884
commit 16e7764568
No known key found for this signature in database
GPG Key ID: 03E4BD365FF06726
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}