diff --git a/ghost/admin/app/routes/collection.js b/ghost/admin/app/routes/collection.js index 7110da473f..f19f609f76 100644 --- a/ghost/admin/app/routes/collection.js +++ b/ghost/admin/app/routes/collection.js @@ -1,3 +1,4 @@ +import * as Sentry from '@sentry/ember'; import AuthenticatedRoute from 'ghost-admin/routes/authenticated'; import ConfirmUnsavedChangesModal from '../components/modals/confirm-unsaved-changes'; import {action} from '@ember/object'; @@ -77,6 +78,7 @@ export default class CollectionRoute extends AuthenticatedRoute { async confirmUnsavedChanges() { if (this.controller.model?.hasDirtyAttributes) { + Sentry.captureMessage('showing unsaved changes modal for collections route'); this.confirmModal = this.modals .open(ConfirmUnsavedChangesModal) .finally(() => { diff --git a/ghost/admin/app/routes/member.js b/ghost/admin/app/routes/member.js index b0b245376b..ab9bdc8c75 100644 --- a/ghost/admin/app/routes/member.js +++ b/ghost/admin/app/routes/member.js @@ -1,3 +1,4 @@ +import * as Sentry from '@sentry/ember'; import AdminRoute from 'ghost-admin/routes/admin'; import ConfirmUnsavedChangesModal from '../components/modals/confirm-unsaved-changes'; import {action} from '@ember/object'; @@ -96,6 +97,7 @@ export default class MembersRoute extends AdminRoute { } async confirmUnsavedChanges() { + Sentry.captureMessage('showing unsaved changes modal for members route'); this.confirmModal = this.modals .open(ConfirmUnsavedChangesModal) .finally(() => { diff --git a/ghost/admin/app/routes/tag.js b/ghost/admin/app/routes/tag.js index ada63bba91..17443be1dc 100644 --- a/ghost/admin/app/routes/tag.js +++ b/ghost/admin/app/routes/tag.js @@ -1,3 +1,4 @@ +import * as Sentry from '@sentry/ember'; import AuthenticatedRoute from 'ghost-admin/routes/authenticated'; import ConfirmUnsavedChangesModal from '../components/modals/confirm-unsaved-changes'; import {action} from '@ember/object'; @@ -77,6 +78,7 @@ export default class TagRoute extends AuthenticatedRoute { async confirmUnsavedChanges() { if (this.controller.model?.hasDirtyAttributes) { + Sentry.captureMessage('showing unsaved changes modal for tags route'); this.confirmModal = this.modals .open(ConfirmUnsavedChangesModal) .finally(() => {