UX: indicate main sidebar section is always public (#22492)
This commit is contained in:
parent
d52b0560ff
commit
26d19fc1bd
|
@ -73,15 +73,22 @@
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if
|
{{#if (and this.currentUser.staff)}}
|
||||||
(and this.currentUser.staff (not this.transformedModel.sectionType))
|
<div
|
||||||
}}
|
class="row-wrapper mark-public-wrapper
|
||||||
<div class="row-wrapper mark-public-wrapper">
|
{{if this.transformedModel.sectionType '-disabled'}}"
|
||||||
|
>
|
||||||
<label class="checkbox-label">
|
<label class="checkbox-label">
|
||||||
|
{{#if this.transformedModel.sectionType}}
|
||||||
|
<DTooltip @placement="top-start">
|
||||||
|
{{i18n "sidebar.sections.custom.always_public"}}
|
||||||
|
</DTooltip>
|
||||||
|
{{/if}}
|
||||||
<Input
|
<Input
|
||||||
@type="checkbox"
|
@type="checkbox"
|
||||||
@checked={{this.transformedModel.public}}
|
@checked={{this.transformedModel.public}}
|
||||||
class="mark-public"
|
class="mark-public"
|
||||||
|
disabled={{this.transformedModel.sectionType}}
|
||||||
/>
|
/>
|
||||||
{{i18n "sidebar.sections.custom.public"}}
|
{{i18n "sidebar.sections.custom.public"}}
|
||||||
</label>
|
</label>
|
||||||
|
|
|
@ -190,6 +190,11 @@
|
||||||
grid-column: 2;
|
grid-column: 2;
|
||||||
}
|
}
|
||||||
&.mark-public-wrapper {
|
&.mark-public-wrapper {
|
||||||
|
margin-top: 1em;
|
||||||
|
padding-bottom: 0;
|
||||||
|
&.-disabled label {
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
label {
|
label {
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4415,6 +4415,7 @@ en:
|
||||||
delete_confirm: "Are you sure you want to delete this section?"
|
delete_confirm: "Are you sure you want to delete this section?"
|
||||||
reset_confirm: "Are you sure you want to reset this section to default?"
|
reset_confirm: "Are you sure you want to reset this section to default?"
|
||||||
public: "Make this section public and visible to everyone"
|
public: "Make this section public and visible to everyone"
|
||||||
|
always_public: "Content in this section is always public"
|
||||||
more_menu: "More menu"
|
more_menu: "More menu"
|
||||||
links:
|
links:
|
||||||
add: "Add another link"
|
add: "Add another link"
|
||||||
|
|
Loading…
Reference in New Issue