DEV: Differentiate staff-writes-only banner (#18364)
This commit is contained in:
parent
4c4cc20c61
commit
69d74ae508
|
@ -77,6 +77,7 @@ export default Component.extend({
|
|||
|
||||
@discourseComputed(
|
||||
"site.isReadOnly",
|
||||
"site.isStaffWritesOnly",
|
||||
"siteSettings.login_required",
|
||||
"siteSettings.disable_emails",
|
||||
"siteSettings.global_notice",
|
||||
|
@ -85,6 +86,7 @@ export default Component.extend({
|
|||
)
|
||||
notices(
|
||||
isReadOnly,
|
||||
isStaffWritesOnly,
|
||||
loginRequired,
|
||||
disableEmails,
|
||||
globalNotice,
|
||||
|
@ -111,7 +113,14 @@ export default Component.extend({
|
|||
);
|
||||
}
|
||||
|
||||
if (isReadOnly) {
|
||||
if (isStaffWritesOnly) {
|
||||
notices.push(
|
||||
Notice.create({
|
||||
text: I18n.t("staff_writes_only_mode.enabled"),
|
||||
id: "alert-staff-writes-only",
|
||||
})
|
||||
);
|
||||
} else if (isReadOnly) {
|
||||
notices.push(
|
||||
Notice.create({
|
||||
text: I18n.t("read_only_mode.enabled"),
|
||||
|
|
|
@ -1838,6 +1838,8 @@ en:
|
|||
enabled: "This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now."
|
||||
login_disabled: "Login is disabled while the site is in read only mode."
|
||||
logout_disabled: "Logout is disabled while the site is in read only mode."
|
||||
staff_writes_only_mode:
|
||||
enabled: "This site is in staff only mode. Please continue to browse, but replying, likes, and other actions are limited to staff members only."
|
||||
too_few_topics_and_posts_notice_MF: >-
|
||||
Let's <a href="https://blog.discourse.org/2014/08/building-a-discourse-community/">start the discussion!</a>
|
||||
There {currentTopics, plural, one {is <strong>#</strong> topic} other {are <strong>#</strong> topics}} and
|
||||
|
|
Loading…
Reference in New Issue