|
@@ -14046,20 +14046,6 @@ define(['exports', 'axios', 'qs', 'lodash', 'jquery', 'moment', 'recast', 'xlsx'
|
|
var editorUiInit = EditorUi.prototype.init;
|
|
var editorUiInit = EditorUi.prototype.init;
|
|
EditorUi.prototype.init = function () {
|
|
EditorUi.prototype.init = function () {
|
|
editorUiInit.apply(this, arguments);
|
|
editorUiInit.apply(this, arguments);
|
|
- // this.actions.get('export').setEnabled(false);
|
|
|
|
- // Updates action states which require a backend
|
|
|
|
- // if (!Editor.useLocalStorage) {
|
|
|
|
- // mxUtils.post(OPEN_URL, '', mxUtils.bind(this, function (req) {
|
|
|
|
- // var enabled = req.getStatus() != 404;
|
|
|
|
- // this.actions.get('open').setEnabled(enabled || Graph.fileSupport);
|
|
|
|
- // this.actions.get('import').setEnabled(enabled || Graph.fileSupport);
|
|
|
|
- // this.actions.get('save').setEnabled(enabled);
|
|
|
|
- // this.actions.get('saveAs').setEnabled(enabled);
|
|
|
|
- // this.actions.get('export').setEnabled(enabled);
|
|
|
|
- // }));
|
|
|
|
- // }
|
|
|
|
- // this.actions.get('save').setEnabled(enabled);
|
|
|
|
- console.log('EditorUi=editorUi', this);
|
|
|
|
this.actions.get('save').funct = that.onFileSave.bind(that);
|
|
this.actions.get('save').funct = that.onFileSave.bind(that);
|
|
this.actions.get('saveAs').funct = that.onFileSaveAs.bind(that);
|
|
this.actions.get('saveAs').funct = that.onFileSaveAs.bind(that);
|
|
this.actions.get('open').visible = false;
|
|
this.actions.get('open').visible = false;
|
|
@@ -14068,6 +14054,7 @@ define(['exports', 'axios', 'qs', 'lodash', 'jquery', 'moment', 'recast', 'xlsx'
|
|
this.actions.get('print').visible = false;
|
|
this.actions.get('print').visible = false;
|
|
this.actions.get('pageSetup').visible = false;
|
|
this.actions.get('pageSetup').visible = false;
|
|
this.actions.get('help').visible = false;
|
|
this.actions.get('help').visible = false;
|
|
|
|
+ this.actions.get('export').visible = false;
|
|
this.actions.get('about').visible = false;
|
|
this.actions.get('about').visible = false;
|
|
this.menus.menus.help.setEnabled(false);
|
|
this.menus.menus.help.setEnabled(false);
|
|
that.editorUi = this;
|
|
that.editorUi = this;
|
|
@@ -14096,8 +14083,12 @@ define(['exports', 'axios', 'qs', 'lodash', 'jquery', 'moment', 'recast', 'xlsx'
|
|
});
|
|
});
|
|
};
|
|
};
|
|
WidgetDesign.prototype.onDestroy = function () {
|
|
WidgetDesign.prototype.onDestroy = function () {
|
|
- };
|
|
|
|
- WidgetDesign.prototype.onFileLoad = function () {
|
|
|
|
|
|
+ var _a;
|
|
|
|
+ try {
|
|
|
|
+ (_a = this.editorUi) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
|
|
+ }
|
|
|
|
+ catch (e) {
|
|
|
|
+ }
|
|
};
|
|
};
|
|
WidgetDesign.prototype.onFileSaveAs = function () {
|
|
WidgetDesign.prototype.onFileSaveAs = function () {
|
|
var _this = this;
|
|
var _this = this;
|
|
@@ -14124,6 +14115,7 @@ define(['exports', 'axios', 'qs', 'lodash', 'jquery', 'moment', 'recast', 'xlsx'
|
|
layoutCode: layoutCode, layoutName: layoutName, layoutContent: layoutContent
|
|
layoutCode: layoutCode, layoutName: layoutName, layoutContent: layoutContent
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
msg$1(res.msg);
|
|
msg$1(res.msg);
|
|
|
|
+ handles$1.whLayout.reload();
|
|
}).finally(function () {
|
|
}).finally(function () {
|
|
_this.setLoading(false);
|
|
_this.setLoading(false);
|
|
});
|
|
});
|