|
|
@@ -1,8 +1,8 @@ |
|
|
|
var tagArray = []; |
|
|
|
const data=[ |
|
|
|
'#th', |
|
|
|
'#efi', |
|
|
|
'#wichtig', |
|
|
|
'th', |
|
|
|
'efi', |
|
|
|
'wichtig', |
|
|
|
]; |
|
|
|
const CreateMsgRouter = { |
|
|
|
template: ` |
|
|
@@ -38,8 +38,6 @@ const CreateMsgRouter = { |
|
|
|
<b-button @click="$router.go(-1)">ABBRECHEN</b-button> |
|
|
|
<b-button type="is-primary" @click="createMsg">SENDEN</b-button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
`, |
|
|
|
data: function () { |
|
|
@@ -114,7 +112,7 @@ const CreateMsgRouter = { |
|
|
|
|
|
|
|
function get_insert_tag(id){ |
|
|
|
$.ajax({ url: "api/tag/"+id, method: "GET" }).done(function (tag) { |
|
|
|
data.push(tag.name); |
|
|
|
data.push("#"+tag.name); |
|
|
|
console.log("it worked!"); |
|
|
|
}).fail(function (e, f, g) { |
|
|
|
console.log("cannot load " + id + ".json: " + e + f + g); |