mirror of
https://github.com/documize/community.git
synced 2025-07-21 22:29:41 +02:00
Improved Draw.io integration pending changes detection
This commit is contained in:
parent
8a30f3681c
commit
b1a35b7f75
5 changed files with 693 additions and 680 deletions
|
@ -58,9 +58,9 @@ Space view.
|
|||
|
||||
## Latest version
|
||||
|
||||
[Community edition: v1.69.1](https://github.com/documize/community/releases)
|
||||
[Community edition: v1.69.2](https://github.com/documize/community/releases)
|
||||
|
||||
[Enterprise edition: v1.71.1](https://documize.com/downloads)
|
||||
[Enterprise edition: v1.71.2](https://documize.com/downloads)
|
||||
|
||||
## OS support
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ func main() {
|
|||
rt.Product = env.ProdInfo{}
|
||||
rt.Product.Major = "1"
|
||||
rt.Product.Minor = "69"
|
||||
rt.Product.Patch = "1"
|
||||
rt.Product.Patch = "2"
|
||||
rt.Product.Version = fmt.Sprintf("%s.%s.%s", rt.Product.Major, rt.Product.Minor, rt.Product.Patch)
|
||||
rt.Product.Edition = "Community"
|
||||
rt.Product.Title = fmt.Sprintf("%s Edition", rt.Product.Edition)
|
||||
|
|
1350
embed/bindata.go
1350
embed/bindata.go
File diff suppressed because one or more lines are too long
|
@ -110,7 +110,15 @@ export default Component.extend({
|
|||
},
|
||||
|
||||
invokeExport() {
|
||||
// Cannot export if nothing has been changed
|
||||
// so we skip straight to the save process.
|
||||
if (is.empty(this.get('diagramXML'))) {
|
||||
this.set('readyToSave', true);
|
||||
return;
|
||||
}
|
||||
|
||||
let editorFrame = document.getElementById(this.get('editorId'));
|
||||
|
||||
editorFrame.contentWindow.postMessage(
|
||||
JSON.stringify(
|
||||
{
|
||||
|
@ -126,7 +134,12 @@ export default Component.extend({
|
|||
if (this.get('readyToSave')) {
|
||||
let page = this.get('page');
|
||||
let meta = this.get('meta');
|
||||
meta.set('rawBody', this.get('diagram'));
|
||||
|
||||
// handle case where no diagram changes were made
|
||||
let dg = this.get('diagram');
|
||||
if (is.empty(dg)) dg = this.get('meta.rawBody');
|
||||
|
||||
meta.set('rawBody', dg);
|
||||
page.set('title', this.get('title'));
|
||||
|
||||
this.set('waiting', false);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "documize",
|
||||
"version": "1.69.1",
|
||||
"version": "1.69.2",
|
||||
"description": "The Document IDE",
|
||||
"private": true,
|
||||
"repository": "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue