mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
A user can permanently close the current global announcement so it does not reappear on reload or board-switch, until the admin edits the announcement text (its content-derived version changes, so it reappears for everyone). Dismissed version stored on the user profile; visibility decided by the unit-tested shouldShowAnnouncement helper. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
10 lines
432 B
JavaScript
10 lines
432 B
JavaScript
// Pure, dependency-free helpers for per-user announcement dismissal (#6051).
|
|
// The implementation lives in models/announcements.js (an isomorphic model
|
|
// file) so client and server share identical logic. This module re-exports the
|
|
// pure functions at the documented test path and is itself free of any
|
|
// Meteor/Mongo runtime dependency.
|
|
export {
|
|
announcementVersion,
|
|
shouldShowAnnouncement,
|
|
} from '/models/announcements';
|