Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc-browser.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'keepassxc-browser/popups/popup.js')
-rw-r--r--keepassxc-browser/popups/popup.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/keepassxc-browser/popups/popup.js b/keepassxc-browser/popups/popup.js
index b457b32..46d9497 100644
--- a/keepassxc-browser/popups/popup.js
+++ b/keepassxc-browser/popups/popup.js
@@ -16,10 +16,15 @@ function statusResponse(r) {
$('#configured-and-associated').hide();
$('#configured-not-associated').hide();
$('#lock-database-button').hide();
+ $('#getting-started-guide').hide();
if (!r.keePassXCAvailable) {
$('#error-message').textContent = r.error;
$('#error-encountered').show();
+
+ if (r.showGettingStartedGuideAlert) {
+ $('#getting-started-guide').show();
+ }
} else if (r.keePassXCAvailable && r.databaseClosed) {
$('#database-error-message').textContent = r.error;
$('#database-not-opened').show();
@@ -114,6 +119,12 @@ const sendMessageToTab = async function(message) {
$('#username-field-detected').hide();
});
+ $('#getting-started-alert-close-button').addEventListener('click', async () => {
+ await browser.runtime.sendMessage({
+ action: 'hide_getting_started_guide_alert'
+ });
+ });
+
statusResponse(await browser.runtime.sendMessage({
action: 'get_status'
}).catch((err) => {