summaryrefslogtreecommitdiffstats
path: root/client/components/main/header.js
diff options
context:
space:
mode:
authornztqa <nztqa@users.noreply.github.com>2017-09-28 16:57:04 +0900
committernztqa <nztqa@users.noreply.github.com>2017-09-28 16:57:04 +0900
commitaa1876f94c71d252d427f298e9b37c87f2fe4127 (patch)
tree6540ff8c3af1875edc6e1f0d2ce7d9480b86bdb8 /client/components/main/header.js
parenteb945f26a3be316fb2ae4452d6db45a11f8b91d4 (diff)
downloadwekan-aa1876f94c71d252d427f298e9b37c87f2fe4127.tar.gz
wekan-aa1876f94c71d252d427f298e9b37c87f2fe4127.tar.bz2
wekan-aa1876f94c71d252d427f298e9b37c87f2fe4127.zip
Add message from service administrator
Diffstat (limited to 'client/components/main/header.js')
-rw-r--r--client/components/main/header.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/client/components/main/header.js b/client/components/main/header.js
index 49acbfef..3b724651 100644
--- a/client/components/main/header.js
+++ b/client/components/main/header.js
@@ -10,8 +10,22 @@ Template.header.helpers({
appIsOffline() {
return !Meteor.status().connected;
},
+
+ hasAnnouncement() {
+ const notice = Notices.findOne();
+ return notice && notice.enabled;
+ },
+
+ announcement() {
+ $('.announcement').show();
+ const notice = Notices.findOne();
+ return notice && notice.body;
+ },
});
Template.header.events({
'click .js-create-board': Popup.open('headerBarCreateBoard'),
+ 'click .js-close-announcement'() {
+ $('.announcement').hide();
+ },
});