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

github.com/marius-wieschollek/passwords-webextension.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/vue/App/Popup.vue')
-rw-r--r--src/vue/App/Popup.vue13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/vue/App/Popup.vue b/src/vue/App/Popup.vue
index aaf5fb8..b9e19f3 100644
--- a/src/vue/App/Popup.vue
+++ b/src/vue/App/Popup.vue
@@ -47,6 +47,16 @@
}
},
+ data() {
+ PopupStateService.status.on((data) => {
+ if(data.key === 'authorized') this.authorized = data.value;
+ });
+
+ return {
+ authorized: PopupStateService.getStatus('authorized')
+ }
+ },
+
computed: {
tab() {
return PopupStateService.getTab();
@@ -54,9 +64,6 @@
firstRun() {
return PopupStateService.getStatus('firstRun');
},
- authorized() {
- return PopupStateService.getStatus('authorized');
- },
tabs() {
return {
related : {