Button und Link für die Suche
This commit is contained in:
+13
-2
@@ -2,6 +2,8 @@ const HomeRouter = {
|
||||
template: `
|
||||
<div>
|
||||
<div id="om-msg-cards" class="is-hidden-desktop">
|
||||
<a v-if="isSearchActiv" @click="goBackToDashboard">< zurück zu allen Einträgen</a>
|
||||
<b-button class="subscribe-btn" v-if="isSubscripeButtonActiv" type="is-primary" @click="">#IPSUM ABONNIEREN</b-button>
|
||||
<MsgCard
|
||||
v-for="id in messagelist.slice().reverse()"
|
||||
:key="id"
|
||||
@@ -10,6 +12,8 @@ const HomeRouter = {
|
||||
</div>
|
||||
|
||||
<div id="om-msg-cards" class="column is-three-quarters is-pulled-right is-hidden-touch content-desktop">
|
||||
<a v-if="isSearchActiv" @click="goBackToDashboard">< zurück zu allen Einträgen</a>
|
||||
<b-button class="subscribe-btn" v-if="isSubscripeButtonActiv" type="is-primary" @click="">#IPSUM ABONNIEREN</b-button>
|
||||
<MsgCard
|
||||
v-for="id in messagelist.slice().reverse()"
|
||||
:key="id"
|
||||
@@ -21,14 +25,21 @@ const HomeRouter = {
|
||||
return {
|
||||
messagelist: _messagelist,
|
||||
messages: _messages,
|
||||
isSearchActiv: _isSearchActiv,
|
||||
isSubscripeButtonActiv: _isSubscripeButtonActiv
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
list_messages: function() {
|
||||
messages();
|
||||
}
|
||||
},
|
||||
},
|
||||
goBackToDashboard: function() {
|
||||
//Home neu rendern ...
|
||||
//windows.history.go();
|
||||
|
||||
_isSearchActiv = false;
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
this.list_messages();
|
||||
//this.refresh_messages();
|
||||
|
||||
@@ -8,11 +8,14 @@ var auth = {},
|
||||
_messages = {},
|
||||
|
||||
// Tag
|
||||
_taglist = [],
|
||||
_taglist = ["efi","wichtig"],
|
||||
_tags = [],
|
||||
tagArray = [],
|
||||
|
||||
// Search
|
||||
isSearchActive = false,
|
||||
_isSearchActiv = false,
|
||||
_isSubscripeButtonActiv = false,
|
||||
data = [],
|
||||
search_data = [];
|
||||
search_data = []
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user