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:
authorflo-mic <florianmichel@hotmail.de>2021-03-06 12:34:29 +0300
committerflo-mic <florianmichel@hotmail.de>2021-03-06 12:34:29 +0300
commit32a8a134c95a75b76122e25faf314daa77c9ade0 (patch)
tree9de8354b7bb8061506939a4aaa6b3e3e6c606d1d
parent6eff479a70ca68850a62d706c73e1acab8435f9c (diff)
move password label to computed properties
-rw-r--r--src/vue/Components/List/Item/Password.vue16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/vue/Components/List/Item/Password.vue b/src/vue/Components/List/Item/Password.vue
index 0f1b21f..927a62c 100644
--- a/src/vue/Components/List/Item/Password.vue
+++ b/src/vue/Components/List/Item/Password.vue
@@ -2,7 +2,7 @@
<li class="item password-item">
<div class="label" @click="sendPassword()" :title="title">
<favicon :password="password.getId()" :size="22" v-if="favicon"/>
- {{ getLabel() }}
+ {{ label }}
</div>
<div class="options">
<icon icon="user" hover-icon="clipboard" @click="copy('username', 'text')" draggable="true" @dragstart="drag($event, 'username')"/>
@@ -49,6 +49,13 @@
},
title() {
return LocalisationService.translate('PasswordItemTitle', this.password.getId(), this.password.getStatusCode());
+ },
+ label() {
+ var result = this.password.getLabel();
+ if(PasswordSettingsManager.getShowUserInList() && this.password.getUserName() !== "") {
+ result = result + " - " + this.password.getUserName();
+ }
+ return result;
}
},
@@ -93,13 +100,6 @@
ErrorManager.logError(e);
}
},
- getLabel() {
- var result = this.password.getLabel();
- if(PasswordSettingsManager.getShowUserInList() && this.password.getUserName() !== "") {
- result = result + " - " + this.password.getUserName();
- }
- return result;
- },
copy(property, type) {
let data = this.password.getProperty(property);
MessageService.send({type: 'clipboard.write', payload: {type: type, value: data}}).catch(ErrorManager.catch);