diff options
author | OzoneGrif | 2020-02-10 14:22:18 +0100 |
---|---|---|
committer | GitHub | 2020-02-10 14:22:18 +0100 |
commit | ca1504a0b4dc457666b4064087e8900c40282973 (patch) | |
tree | b83f065496e71489c0f9e1e15d784d38fd351ac4 /viewer/src/components | |
parent | c62a026cfe9bc960336d743f8c3e864e5246171f (diff) | |
parent | 6d2cc07e543ae86facc4194108038a3310bc1e7a (diff) | |
download | ldgallery-ca1504a0b4dc457666b4064087e8900c40282973.tar.gz |
Merge pull request #111 from pacien/tag-propositions-hints
viewer: tag propositions hints
Diffstat (limited to 'viewer/src/components')
-rw-r--r-- | viewer/src/components/LdProposition.vue | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/viewer/src/components/LdProposition.vue b/viewer/src/components/LdProposition.vue index 0a293a9..395611f 100644 --- a/viewer/src/components/LdProposition.vue +++ b/viewer/src/components/LdProposition.vue | |||
@@ -2,6 +2,7 @@ | |||
2 | -- pictures into a searchable web gallery. | 2 | -- pictures into a searchable web gallery. |
3 | -- | 3 | -- |
4 | -- Copyright (C) 2019-2020 Guillaume FOUET | 4 | -- Copyright (C) 2019-2020 Guillaume FOUET |
5 | -- 2020 Pacien TRAN-GIRARD | ||
5 | -- | 6 | -- |
6 | -- This program is free software: you can redistribute it and/or modify | 7 | -- This program is free software: you can redistribute it and/or modify |
7 | -- it under the terms of the GNU Affero General Public License as | 8 | -- it under the terms of the GNU Affero General Public License as |
@@ -20,17 +21,28 @@ | |||
20 | <template> | 21 | <template> |
21 | <div> | 22 | <div> |
22 | <div v-for="proposed in proposedTags" :key="proposed.rawTag" class="proposition"> | 23 | <div v-for="proposed in proposedTags" :key="proposed.rawTag" class="proposition"> |
23 | <div class="operation-btns link" @click="add(Operation.SUBSTRACTION, proposed.rawTag)"> | 24 | <a |
24 | <fa-icon icon="minus" /> | 25 | class="operation-btns link" |
25 | </div> | 26 | :title="$t('tag-propositions.substraction')" |
26 | <div class="operation-btns link" @click="add(Operation.ADDITION, proposed.rawTag)"> | 27 | @click="add(Operation.SUBSTRACTION, proposed.rawTag)" |
27 | <fa-icon icon="plus" /> | 28 | ><fa-icon icon="minus" alt="[-]" /></a> |
28 | </div> | 29 | |
29 | <div | 30 | <a |
31 | class="operation-btns link" | ||
32 | :title="$t('tag-propositions.addition')" | ||
33 | @click="add(Operation.ADDITION, proposed.rawTag)" | ||
34 | ><fa-icon icon="plus" alt="[+]" /></a> | ||
35 | |||
36 | <a | ||
30 | class="operation-tag link" | 37 | class="operation-tag link" |
38 | :title="$t('tag-propositions.intersection')" | ||
31 | @click="add(Operation.INTERSECTION, proposed.rawTag)" | 39 | @click="add(Operation.INTERSECTION, proposed.rawTag)" |
32 | >{{proposed.rawTag}}</div> | 40 | >{{proposed.rawTag}}</a> |
33 | <div class="disabled">x{{proposed.count}}</div> | 41 | |
42 | <div | ||
43 | class="disabled" | ||
44 | :title="$t('tag-propositions.item-count')" | ||
45 | >{{proposed.count}}</div> | ||
34 | </div> | 46 | </div> |
35 | </div> | 47 | </div> |
36 | </template> | 48 | </template> |