mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
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
|
||||
onChangePublic(isPublic) {
|
||||
this.publishedPage.set("public", isPublic);
|
||||
this.publish();
|
||||
|
||||
if (this.showUnpublish) {
|
||||
this.publish();
|
||||
}
|
||||
},
|
||||
});
|
||||
|
@ -23,7 +23,7 @@
|
||||
<p class="description">
|
||||
{{input
|
||||
type="checkbox"
|
||||
checked=publishedPage.public
|
||||
checked=(readonly publishedPage.public)
|
||||
click=(action "onChangePublic" value="target.checked")
|
||||
}}
|
||||
{{i18n "topic.publish_page.public_description"}}
|
||||
|
Loading…
Reference in New Issue
Block a user