UX: publishes page, on public change, only when page is published (#12123)
This commit is contained in:
parent
b79c06f3b7
commit
e175e17ebb
|
@ -122,6 +122,9 @@ export default Controller.extend(ModalFunctionality, StateHelpers, {
|
||||||
@action
|
@action
|
||||||
onChangePublic(isPublic) {
|
onChangePublic(isPublic) {
|
||||||
this.publishedPage.set("public", isPublic);
|
this.publishedPage.set("public", isPublic);
|
||||||
this.publish();
|
|
||||||
|
if (this.showUnpublish) {
|
||||||
|
this.publish();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<p class="description">
|
<p class="description">
|
||||||
{{input
|
{{input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked=publishedPage.public
|
checked=(readonly publishedPage.public)
|
||||||
click=(action "onChangePublic" value="target.checked")
|
click=(action "onChangePublic" value="target.checked")
|
||||||
}}
|
}}
|
||||||
{{i18n "topic.publish_page.public_description"}}
|
{{i18n "topic.publish_page.public_description"}}
|
||||||
|
|
Loading…
Reference in New Issue