diff options
author | Marius David Wieschollek <passwords.public@mdns.eu> | 2021-12-28 17:29:04 +0300 |
---|---|---|
committer | Marius David Wieschollek <passwords.public@mdns.eu> | 2021-12-28 17:29:04 +0300 |
commit | cb8a5d8e999969ba842c13a1212c7b54d7dea578 (patch) | |
tree | fdf6d2a90ab0a9ef65054a59bfa2aaefae97c6c9 | |
parent | 2d8131ca9f0257a4ed2496e128f6c17a2db2bf9f (diff) |
Update preview handling
Signed-off-by: Marius David Wieschollek <passwords.public@mdns.eu>
-rw-r--r-- | src/js/App/Preview.js | 4 | ||||
-rw-r--r-- | src/vue/Components/Password/Mining.vue | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/js/App/Preview.js b/src/js/App/Preview.js index 7b79504..7fce2f3 100644 --- a/src/js/App/Preview.js +++ b/src/js/App/Preview.js @@ -318,8 +318,8 @@ class Preview { let label = LocalisationService.translate('DemoText'); return [ - new Password({id: 'pwd-1', label, username: label, password: '', url: 'https://example.com', folder, status: 0}), - new Password({id: 'pwd-2', label, username: label, password: '', url: 'https://example.com', folder, status: 2}) + new Password({id: 'pwd-1', label, username: label, password: label, notes: label, url: 'https://example.com', customFields: [], folder, hidden:false, status: 0, created: new Date(), edited: new Date()}), + new Password({id: 'pwd-2', label, username: label, password: label, notes: label, url: 'https://example.com', customFields: [], folder, hidden: false, status: 2, created: new Date(), edited: new Date()}) ]; } diff --git a/src/vue/Components/Password/Mining.vue b/src/vue/Components/Password/Mining.vue index 27783a5..5cd97db 100644 --- a/src/vue/Components/Password/Mining.vue +++ b/src/vue/Components/Password/Mining.vue @@ -53,10 +53,6 @@ this.item.getTask().fields.label ]; }, - showNewCustomField() { - return this.allowNewCustomField(); - - }, customFieldsLabel() { return LocalisationService.translate(`LabelCustomFields`); } |