diff --git a/client/src/views/modals/edit.js b/client/src/views/modals/edit.js index 31e66cbe43..d17110802f 100644 --- a/client/src/views/modals/edit.js +++ b/client/src/views/modals/edit.js @@ -279,6 +279,7 @@ class EditModalView extends ModalView { bottomDisabled: this.bottomDisabled, focusForCreate: this.options.focusForCreate, recordHelper: this.options.recordHelper, + webSockedDisabled: true, exit: () => {}, }; diff --git a/client/src/views/record/detail.js b/client/src/views/record/detail.js index 183efec1c6..85e6b00e7a 100644 --- a/client/src/views/record/detail.js +++ b/client/src/views/record/detail.js @@ -69,6 +69,7 @@ class DetailRecordView extends BaseRecordView { * @property {Object.} [dataObject] Additional data. * @property {Record} [rootData] Data from the root view. * @property {boolean} [shortcutKeysEnabled] Enable shortcut keys. + * @property {boolean} [webSockedDisabled] Disable WebSocket. As if v9.2.0. */ /** @@ -83,6 +84,8 @@ class DetailRecordView extends BaseRecordView { */ constructor(options) { super(options); + + this.options = options; } /** @inheritDoc */ @@ -2010,6 +2013,7 @@ class DetailRecordView extends BaseRecordView { }); if ( + !this.options.webSockedDisabled && !this.isNew && !!this.getHelper().webSocketManager && this.getMetadata().get(['scopes', this.entityType, 'object']) @@ -3581,6 +3585,8 @@ class DetailRecordView extends BaseRecordView { } this.getHelper().webSocketManager.unsubscribe(this.recordUpdateWebSocketTopic); + + this.isSubscribedToWebSocket = false; } /**