no websocket in quick edit modal
This commit is contained in:
@@ -279,6 +279,7 @@ class EditModalView extends ModalView {
|
||||
bottomDisabled: this.bottomDisabled,
|
||||
focusForCreate: this.options.focusForCreate,
|
||||
recordHelper: this.options.recordHelper,
|
||||
webSockedDisabled: true,
|
||||
exit: () => {},
|
||||
};
|
||||
|
||||
|
||||
@@ -69,6 +69,7 @@ class DetailRecordView extends BaseRecordView {
|
||||
* @property {Object.<string, *>} [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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user