From: Marc Foley Date: Thu, 17 Jul 2025 08:49:34 +0000 (+0100) Subject: Add missing file X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdcefdf31c1cccdb1b99d9749087eb0b00ab7440;p=thirdparty%2Fgoogle%2Ffonts.git Add missing file --- diff --git a/tagger2/AddCategory.js b/tagger2/AddCategory.js new file mode 100644 index 000000000..933d9c43f --- /dev/null +++ b/tagger2/AddCategory.js @@ -0,0 +1,24 @@ +export default { + data: function() { + return { + category: "", // Input for new category + } + }, + methods: { + addCategory() { + if (this.category.trim() === "") { + alert("Category name cannot be empty."); + return; + } + this.$emit('category-added', this.category.trim()); + this.category = ""; // Reset the input field after adding + } + }, + template: ` +
+

Add new category

+ + +
+ ` +} \ No newline at end of file