Skip to content

Commit b1a35b7

Browse files
committed
Improved Draw.io integration pending changes detection
1 parent 8a30f36 commit b1a35b7

File tree

5 files changed

+686
-673
lines changed

5 files changed

+686
-673
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ Space view.
5858

5959
## Latest version
6060

61-
[Community edition: v1.69.1](https://github.com/documize/community/releases)
61+
[Community edition: v1.69.2](https://github.com/documize/community/releases)
6262

63-
[Enterprise edition: v1.71.1](https://documize.com/downloads)
63+
[Enterprise edition: v1.71.2](https://documize.com/downloads)
6464

6565
## OS support
6666

edition/community.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func main() {
4242
rt.Product = env.ProdInfo{}
4343
rt.Product.Major = "1"
4444
rt.Product.Minor = "69"
45-
rt.Product.Patch = "1"
45+
rt.Product.Patch = "2"
4646
rt.Product.Version = fmt.Sprintf("%s.%s.%s", rt.Product.Major, rt.Product.Minor, rt.Product.Patch)
4747
rt.Product.Edition = "Community"
4848
rt.Product.Title = fmt.Sprintf("%s Edition", rt.Product.Edition)

embed/bindata.go

+668-668
Large diffs are not rendered by default.

gui/app/components/section/flowchart/type-editor.js

+14-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,15 @@ export default Component.extend({
110110
},
111111

112112
invokeExport() {
113+
// Cannot export if nothing has been changed
114+
// so we skip straight to the save process.
115+
if (is.empty(this.get('diagramXML'))) {
116+
this.set('readyToSave', true);
117+
return;
118+
}
119+
113120
let editorFrame = document.getElementById(this.get('editorId'));
121+
114122
editorFrame.contentWindow.postMessage(
115123
JSON.stringify(
116124
{
@@ -126,7 +134,12 @@ export default Component.extend({
126134
if (this.get('readyToSave')) {
127135
let page = this.get('page');
128136
let meta = this.get('meta');
129-
meta.set('rawBody', this.get('diagram'));
137+
138+
// handle case where no diagram changes were made
139+
let dg = this.get('diagram');
140+
if (is.empty(dg)) dg = this.get('meta.rawBody');
141+
142+
meta.set('rawBody', dg);
130143
page.set('title', this.get('title'));
131144

132145
this.set('waiting', false);

gui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "documize",
3-
"version": "1.69.1",
3+
"version": "1.69.2",
44
"description": "The Document IDE",
55
"private": true,
66
"repository": "",

0 commit comments

Comments
 (0)