diff --git a/public/index.html b/public/index.html index 226d315..b77f044 100644 --- a/public/index.html +++ b/public/index.html @@ -101,6 +101,7 @@ @@ -211,8 +213,9 @@ router, el: '#api', data: function() { - return{ + return { searchtext: "", + isSearchActiv: false, selected: [], taglist: dat, }; @@ -229,6 +232,7 @@ }, methods: { search: function() { + this.isSearchActiv = true; console.log("Searchtext: " +this.searchtext.replace(/#/g,'')); $.ajax({ url: "api/msg/search/" + this.searchtext.replace(/#/g, ''), @@ -274,8 +278,16 @@ } }).fail(function (e, f, g) { console.log("err: " + e + f + g); - }); - } + }); + }, + + clear: function() { + console.log("clear"); + + this.isSearchActiv = false; + this.searchtext = ""; + listMessages(); + }, }, mounted: function () {