some more tweaks to load behavior

pull/1/head
Nicholas Bollweg 2020-05-20 23:21:50 -04:00
rodzic 40557b6dc8
commit 5ab21d1bd6
2 zmienionych plików z 9 dodań i 16 usunięć

Wyświetl plik

@ -32,7 +32,7 @@
}
},
"drawioConfig": {
"description": "Configuration options sen,t to each drawio editor. https://desk.draw.io/support/solutions/articles/16000058316",
"description": "Configuration options sent to each drawio editor. https://desk.draw.io/support/solutions/articles/16000058316",
"$ref": "#/definitions/drawio-config",
"default": {}
}
@ -577,25 +577,18 @@
},
"off-switch": {
"type": "number",
"enum": [
0
]
"minimum": 0,
"maximum": 0
},
"on-switch": {
"type": "number",
"enum": [
1
]
"minimum": 1,
"maximum": 1
},
"on-off-switch": {
"anyOf": [
{
"$ref": "#/definitions/on-switch"
},
{
"$ref": "#/definitions/off-switch"
}
]
"type": "number",
"minimum": 0,
"maximum": 1
},
"url-param-target": {
"type": "string",

Wyświetl plik

@ -101,7 +101,6 @@ export class DrawioWidget extends DocumentWidget<IFrame> {
this._saveNeedsExport = IO.EXPORT_MIME_MAP.has(
this.context.contentsModel.mimetype
);
this.addClass(READY_CLASS);
});
}
@ -135,6 +134,7 @@ export class DrawioWidget extends DocumentWidget<IFrame> {
break;
case "load":
this._ready.resolve(void 0);
this.addClass(READY_CLASS);
break;
case "save":
if (this._saveNeedsExport) {