-
-
- {{ $t("Settings.Password Dialog.Enter Password To Unlock") }}
+
+ {{ $t("Settings.Password Dialog.Enter Password To Unlock") }}
-
- password = e"
- />
-
-
-
-
+
+
diff --git a/src/renderer/components/password-settings/password-settings.css b/src/renderer/components/password-settings/password-settings.css
new file mode 100644
index 0000000000000..07cbe309f9c96
--- /dev/null
+++ b/src/renderer/components/password-settings/password-settings.css
@@ -0,0 +1,3 @@
+.centerButton {
+ align-self: center;
+}
diff --git a/src/renderer/components/password-settings/password-settings.js b/src/renderer/components/password-settings/password-settings.js
index 40e9f482f2609..ca6f038945a43 100644
--- a/src/renderer/components/password-settings/password-settings.js
+++ b/src/renderer/components/password-settings/password-settings.js
@@ -13,30 +13,19 @@ export default Vue.extend({
'ft-flex-box': FtFlexBox,
'ft-button': FtButton,
},
- emits: ['settingsUnlocked'],
data: function() {
return {
password: '',
}
},
computed: {
- getStoredPassword: function() {
+ settingsPassword: function() {
return this.$store.getters.getSettingsPassword
},
hasStoredPassword: function() {
- return this.getStoredPassword !== ''
- },
- unlocked: function() {
- return this.getStoredPassword === '' || this.password === this.getStoredPassword
+ return this.settingsPassword !== ''
}
},
- watch: {
- unlocked(val, oldVal) {
- if (val !== oldVal) {
- this.propagateUnlockStatus()
- }
- },
- },
methods: {
handleSetPassword: function () {
this.updateSettingsPassword(this.password)
@@ -46,13 +35,8 @@ export default Vue.extend({
this.updateSettingsPassword('')
this.password = ''
},
- propagateUnlockStatus: function() {
- this.$emit('settingsUnlocked', this.unlocked)
- },
-
...mapActions([
'updateSettingsPassword'
- ]),
-
+ ])
}
})
diff --git a/src/renderer/components/password-settings/password-settings.vue b/src/renderer/components/password-settings/password-settings.vue
index 5ba0279b7e944..a8772dd87dcbc 100644
--- a/src/renderer/components/password-settings/password-settings.vue
+++ b/src/renderer/components/password-settings/password-settings.vue
@@ -2,35 +2,35 @@