Compare commits
No commits in common. "ab358abe986e2d291a689ac791492a8724b6b4b3" and "8c0d3dc669bc52ca1eec85bb93f201a8f2105cfd" have entirely different histories.
ab358abe98
...
8c0d3dc669
@ -99,18 +99,20 @@
|
|||||||
<a class="logo-img" href="index.html"><img src="img/app_icon.png" width=45px height=45px></a>
|
<a class="logo-img" href="index.html"><img src="img/app_icon.png" width=45px height=45px></a>
|
||||||
<form class="om-searchbar" @submit.prevent="search()">
|
<form class="om-searchbar" @submit.prevent="search()">
|
||||||
<b-field>
|
<b-field>
|
||||||
<b-taginput
|
<b-input
|
||||||
id="search-text"
|
|
||||||
type="search"
|
type="search"
|
||||||
v-model="selected"
|
v-model="searchtext"
|
||||||
:data=taglist
|
|
||||||
autocomplete
|
|
||||||
allow-new:true
|
|
||||||
icon="magnify"
|
icon="magnify"
|
||||||
placeholder="suche.."
|
placeholder="Suche...">
|
||||||
@typing="getFilteredTags"
|
</b-input>
|
||||||
@input="saveTagsToArray">
|
<!--<b-autocomplete
|
||||||
</b-taginput>
|
v-model="name"
|
||||||
|
:data="filteredTagArray"
|
||||||
|
type="search"
|
||||||
|
icon="magnify"
|
||||||
|
placeholder="Suche..."
|
||||||
|
@blur="evaluate">
|
||||||
|
</b-autocomplete>-->
|
||||||
</b-field>
|
</b-field>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -167,12 +169,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var tagArray = [];
|
|
||||||
const data=[
|
|
||||||
'th',
|
|
||||||
'efi',
|
|
||||||
'wichtig',
|
|
||||||
];
|
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{ path: "/", component: HomeRouter },
|
{ path: "/", component: HomeRouter },
|
||||||
@ -191,8 +187,6 @@
|
|||||||
data: function() {
|
data: function() {
|
||||||
return{
|
return{
|
||||||
searchtext: "ipsum",
|
searchtext: "ipsum",
|
||||||
selected: [],
|
|
||||||
taglist: data,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -214,27 +208,7 @@
|
|||||||
}).fail(function(e, f, g) {
|
}).fail(function(e, f, g) {
|
||||||
console.log("searching: err: " + e + f + g);
|
console.log("searching: err: " + e + f + g);
|
||||||
})
|
})
|
||||||
},
|
}
|
||||||
getFilteredTags(text) {
|
|
||||||
this.taglist = data.filter((option) => {
|
|
||||||
return option
|
|
||||||
.toString()
|
|
||||||
.toLowerCase()
|
|
||||||
.indexOf(text.toLowerCase()) >= 0
|
|
||||||
})
|
|
||||||
},
|
|
||||||
saveTagsToArray: function() {
|
|
||||||
tagArray = this.selected;
|
|
||||||
console.info(tagArray);
|
|
||||||
},
|
|
||||||
function get_insert_tag(id){
|
|
||||||
$.ajax({ url: "api/tag/"+id, method: "GET" }).done(function (tag) {
|
|
||||||
data.push("#"+tag.name);
|
|
||||||
console.log("it worked!");
|
|
||||||
}).fail(function (e, f, g) {
|
|
||||||
console.log("cannot load " + id + ".json: " + e + f + g);
|
|
||||||
})
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
//this.search();
|
//this.search();
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
var tagArray = [];
|
var tagArray = [];
|
||||||
const data=[
|
const data=[
|
||||||
'th',
|
'#th',
|
||||||
'efi',
|
'#efi',
|
||||||
'wichtig',
|
'#wichtig',
|
||||||
];
|
];
|
||||||
const CreateMsgRouter = {
|
const CreateMsgRouter = {
|
||||||
template: `
|
template: `
|
||||||
@ -38,6 +38,8 @@ const CreateMsgRouter = {
|
|||||||
<b-button @click="$router.go(-1)">ABBRECHEN</b-button>
|
<b-button @click="$router.go(-1)">ABBRECHEN</b-button>
|
||||||
<b-button type="is-primary" @click="createMsg">SENDEN</b-button>
|
<b-button type="is-primary" @click="createMsg">SENDEN</b-button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
data: function () {
|
data: function () {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user