mirror of
https://github.com/wekan/wekan.git
synced 2025-12-20 09:20:12 +01:00
Rename notice -> announcement
This commit is contained in:
parent
aa1876f94c
commit
a88ac6113e
9 changed files with 39 additions and 39 deletions
|
|
@ -12,14 +12,14 @@ Template.header.helpers({
|
|||
},
|
||||
|
||||
hasAnnouncement() {
|
||||
const notice = Notices.findOne();
|
||||
return notice && notice.enabled;
|
||||
const announcements = Announcements.findOne();
|
||||
return announcements && announcements.enabled;
|
||||
},
|
||||
|
||||
announcement() {
|
||||
$('.announcement').show();
|
||||
const notice = Notices.findOne();
|
||||
return notice && notice.body;
|
||||
const announcements = Announcements.findOne();
|
||||
return announcements && announcements.body;
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue