diff options
author | Zero~Informatique | 2020-06-19 22:12:03 +0200 |
---|---|---|
committer | Zero~Informatique | 2020-06-19 22:12:03 +0200 |
commit | 69dc0d20706ed41e5ecdbb77515066d8a7d7703b (patch) | |
tree | 8b69fcb1d4a96290134980e75281563f8b4c271e /viewer/src/components/LdProposition.vue | |
parent | a053076d692be5e3698fe1a2c071d077cb4b6b73 (diff) | |
download | ldgallery-69dc0d20706ed41e5ecdbb77515066d8a7d7703b.tar.gz |
viewer: code update (no functional change)
Types { [x: T]: R } updated to Record<T, R>
Methods in template updated to getters (computed in VueJS), which are reactive and cached
Code formatting
Diffstat (limited to 'viewer/src/components/LdProposition.vue')
-rw-r--r-- | viewer/src/components/LdProposition.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/viewer/src/components/LdProposition.vue b/viewer/src/components/LdProposition.vue index fe3af07..1490689 100644 --- a/viewer/src/components/LdProposition.vue +++ b/viewer/src/components/LdProposition.vue | |||
@@ -66,7 +66,7 @@ export default class LdProposition extends Vue { | |||
66 | } | 66 | } |
67 | 67 | ||
68 | get proposedTags() { | 68 | get proposedTags() { |
69 | let propositions: { [index: string]: number } = {}; | 69 | let propositions: Record<string, number> = {}; |
70 | if (this.model.length > 0) { | 70 | if (this.model.length > 0) { |
71 | // Tags count from current search | 71 | // Tags count from current search |
72 | this.extractDistinctItems(this.model) | 72 | this.extractDistinctItems(this.model) |