0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Removed unused beforeModalClose method on design route

refs 595018098d

- method removal was missed when switching from modal to standard route
This commit is contained in:
Kevin Ansfield 2021-10-11 17:43:59 +01:00
parent 42e493bb81
commit 3345920f29

View file

@ -55,21 +55,6 @@ export default class SettingsDesignRoute extends AuthenticatedRoute {
this.hasConfirmed = false;
}
async beforeModalClose() {
if (this.hasConfirmed) {
return;
}
const shouldLeave = await this.confirmUnsavedChanges();
if (shouldLeave === true) {
this.transitionTo('settings');
} else {
// prevent modal from closing
return false;
}
}
confirmUnsavedChanges() {
if (!this.settings.get('hasDirtyAttributes') && !this.customThemeSettings.isDirty) {
return Promise.resolve(true);