|
|
@@ -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(); |