0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed flash of reply button when publishing a post (#21836)

ref DES-1027
This commit is contained in:
Sodbileg Gansukh 2024-12-09 18:59:44 +08:00 committed by GitHub
parent 75cece4da7
commit b25f42fec6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,6 +53,7 @@ export default class PublishModalComponent extends Component {
@action @action
setCompleted() { setCompleted() {
this.emailErrorMessage = undefined; this.emailErrorMessage = undefined;
this.isConfirming = false;
this.isComplete = true; this.isComplete = true;
if (this.args.data.publishOptions.isScheduled) { if (this.args.data.publishOptions.isScheduled) {
@ -94,6 +95,8 @@ export default class PublishModalComponent extends Component {
*saveTask() { *saveTask() {
try { try {
yield this.args.data.saveTask.perform(); yield this.args.data.saveTask.perform();
this.isConfirming = false;
this.isComplete = true; this.isComplete = true;
} catch (e) { } catch (e) {
if (e?.name === 'EmailFailedError') { if (e?.name === 'EmailFailedError') {