diff --git a/config/config.yml b/config/config.yml index 90469f4..b2581b5 100644 --- a/config/config.yml +++ b/config/config.yml @@ -41,7 +41,7 @@ tags: variant: info icon: directions invert: true - color: '#f6b93b' + color: '#fc69e6' words: - PAIEMENT - RETRAIT diff --git a/src/components/edit_tag.vue b/src/components/edit_tag.vue index dac198e..bdf3871 100644 --- a/src/components/edit_tag.vue +++ b/src/components/edit_tag.vue @@ -4,7 +4,7 @@
-
+

{{ value.name }}

@@ -42,11 +42,14 @@ export default { props: { value: { type: Object, - default: { - color: '', - icon: '', - name: '', - variant: '' + default: function () { + return { + color: '', + icon: 'question', + name: '', + variant: '', + words: [] + } } } }, @@ -55,6 +58,9 @@ export default { } }, computed: { + ...mapGetters({ + 'tag': 'config/tag', + }), keywords: { get: function () { return this.value.words.join('\n') @@ -63,6 +69,9 @@ export default { var kwds = keywords.split('\n') this.value.words = kwds } + }, + existing_tag () { + return this.tag(this.value.name) ? true : false } }, methods: { diff --git a/src/views/config.vue b/src/views/config.vue index d3d6679..a0dc9b6 100644 --- a/src/views/config.vue +++ b/src/views/config.vue @@ -33,12 +33,26 @@ Recharger +

Le fichier configuration se trouve à {{ config_dir + config_filename}}

-

Tags

+ +
+ + Ajouter un tag + +
+
+

Nouveau tag

+ + + Annuler + +
+
@@ -55,17 +69,19 @@