|  | @ -1,7 +1,7 @@ | 
			
		
	
		
		
			
				
					|  |  | <template> |  |  | <template> | 
			
		
	
		
		
			
				
					|  |  |     <div> |  |  |     <div> | 
			
		
	
		
		
			
				
					
					|  |  |         <h4 class="mb-3">{{ $t("Tags") }}</h4> |  |  |         <h4 class="mt-5 mb-3">{{ $t("Tags") }}</h4> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         <div class="mb-3 p-1"> |  |  |         <div v-if="selectedTags.length > 0" class="mb-2 p-1"> | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |             <tag |  |  |             <tag | 
			
		
	
		
		
			
				
					|  |  |                 v-for="item in selectedTags" |  |  |                 v-for="item in selectedTags" | 
			
		
	
		
		
			
				
					|  |  |                 :key="item.id" |  |  |                 :key="item.id" | 
			
		
	
	
		
		
			
				
					|  | @ -124,8 +124,8 @@ | 
			
		
	
		
		
			
				
					|  |  | import { Modal } from "bootstrap"; |  |  | import { Modal } from "bootstrap"; | 
			
		
	
		
		
			
				
					|  |  | import VueMultiselect from "vue-multiselect"; |  |  | import VueMultiselect from "vue-multiselect"; | 
			
		
	
		
		
			
				
					|  |  | import Tag from "../components/Tag.vue"; |  |  | import Tag from "../components/Tag.vue"; | 
			
		
	
		
		
			
				
					
					|  |  | import { useToast } from "vue-toastification" |  |  | import { useToast } from "vue-toastification"; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  | const toast = useToast() |  |  | const toast = useToast(); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | export default { |  |  | export default { | 
			
		
	
		
		
			
				
					|  |  |     components: { |  |  |     components: { | 
			
		
	
	
		
		
			
				
					|  | @ -186,7 +186,7 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |                     color: "#7C3AED" }, |  |  |                     color: "#7C3AED" }, | 
			
		
	
		
		
			
				
					|  |  |                 { name: this.$t("Pink"), |  |  |                 { name: this.$t("Pink"), | 
			
		
	
		
		
			
				
					|  |  |                     color: "#DB2777" }, |  |  |                     color: "#DB2777" }, | 
			
		
	
		
		
			
				
					
					|  |  |             ] |  |  |             ]; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         }, |  |  |         }, | 
			
		
	
		
		
			
				
					|  |  |         validateDraftTag() { |  |  |         validateDraftTag() { | 
			
		
	
		
		
			
				
					|  |  |             let nameInvalid = false; |  |  |             let nameInvalid = false; | 
			
		
	
	
		
		
			
				
					|  | @ -227,7 +227,7 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |                 invalid, |  |  |                 invalid, | 
			
		
	
		
		
			
				
					|  |  |                 nameInvalid, |  |  |                 nameInvalid, | 
			
		
	
		
		
			
				
					|  |  |                 valueInvalid, |  |  |                 valueInvalid, | 
			
		
	
		
		
			
				
					
					|  |  |             } |  |  |             }; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         }, |  |  |         }, | 
			
		
	
		
		
			
				
					|  |  |     }, |  |  |     }, | 
			
		
	
		
		
			
				
					|  |  |     mounted() { |  |  |     mounted() { | 
			
		
	
	
		
		
			
				
					|  | @ -243,7 +243,7 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |                 if (res.ok) { |  |  |                 if (res.ok) { | 
			
		
	
		
		
			
				
					|  |  |                     this.existingTags = res.tags; |  |  |                     this.existingTags = res.tags; | 
			
		
	
		
		
			
				
					|  |  |                 } else { |  |  |                 } else { | 
			
		
	
		
		
			
				
					
					|  |  |                     toast.error(res.msg) |  |  |                     toast.error(res.msg); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |                 } |  |  |                 } | 
			
		
	
		
		
			
				
					|  |  |             }); |  |  |             }); | 
			
		
	
		
		
			
				
					|  |  |         }, |  |  |         }, | 
			
		
	
	
		
		
			
				
					|  | @ -277,7 +277,7 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |                         name: this.newDraftTag.select.name, |  |  |                         name: this.newDraftTag.select.name, | 
			
		
	
		
		
			
				
					|  |  |                         value: this.newDraftTag.value, |  |  |                         value: this.newDraftTag.value, | 
			
		
	
		
		
			
				
					|  |  |                         new: true, |  |  |                         new: true, | 
			
		
	
		
		
			
				
					
					|  |  |                     }) |  |  |                     }); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |                 } |  |  |                 } | 
			
		
	
		
		
			
				
					|  |  |             } else { |  |  |             } else { | 
			
		
	
		
		
			
				
					|  |  |                 // Add new Tag |  |  |                 // Add new Tag | 
			
		
	
	
		
		
			
				
					|  | @ -286,7 +286,7 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |                     name: this.newDraftTag.name.trim(), |  |  |                     name: this.newDraftTag.name.trim(), | 
			
		
	
		
		
			
				
					|  |  |                     value: this.newDraftTag.value, |  |  |                     value: this.newDraftTag.value, | 
			
		
	
		
		
			
				
					|  |  |                     new: true, |  |  |                     new: true, | 
			
		
	
		
		
			
				
					
					|  |  |                 }) |  |  |                 }); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |             } |  |  |             } | 
			
		
	
		
		
			
				
					|  |  |             this.clearDraftTag(); |  |  |             this.clearDraftTag(); | 
			
		
	
		
		
			
				
					|  |  |         }, |  |  |         }, | 
			
		
	
	
		
		
			
				
					|  | @ -348,7 +348,7 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |                         if (tag.name == newTag.name && tag.color == newTag.color) { |  |  |                         if (tag.name == newTag.name && tag.color == newTag.color) { | 
			
		
	
		
		
			
				
					|  |  |                             tag.id = newTagResult.id; |  |  |                             tag.id = newTagResult.id; | 
			
		
	
		
		
			
				
					|  |  |                         } |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |                     }) |  |  |                     }); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |                 } else { |  |  |                 } else { | 
			
		
	
		
		
			
				
					|  |  |                     tagId = newTag.id; |  |  |                     tagId = newTag.id; | 
			
		
	
		
		
			
				
					|  |  |                 } |  |  |                 } | 
			
		
	
	
		
		
			
				
					|  | 
 |