wikijs-fork/views/common/alerts.pug

14 lines
373 B
Plaintext
Raw Normal View History

2016-08-24 01:09:09 +00:00
#alerts
ul
template(v-for="aItem in children", track-by='_uid')
2017-01-03 03:20:24 +00:00
li(v-bind:class='aItem.class')
2017-01-28 00:12:25 +00:00
button(v-on:click='acknowledge(aItem._uid)')
strong {{ aItem.title }}
2016-08-24 01:09:09 +00:00
span {{ aItem.message }}
if appflash.length > 0
2017-01-03 03:20:24 +00:00
script(type='text/javascript').
var alertsData = !{JSON.stringify(appflash)};
2016-08-24 01:09:09 +00:00
else
2017-01-03 03:20:24 +00:00
script(type='text/javascript').
var alertsData = [];