mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
Support custom URLS for Diagrams.net
This commit is contained in:
parent
607a2d5797
commit
1a909dd046
8 changed files with 40 additions and 9 deletions
|
@ -45,6 +45,14 @@ export default Component.extend(Notifier, {
|
|||
|
||||
this.set('trelloCreds', trello);
|
||||
}
|
||||
|
||||
let flowchart = this.get('flowchart');
|
||||
if (_.isEmpty(flowchart) || !_.isObject(flowchart)) {
|
||||
flowchart = {
|
||||
url: '',
|
||||
};
|
||||
}
|
||||
this.set('flowchart', flowchart);
|
||||
},
|
||||
|
||||
actions: {
|
||||
|
@ -61,6 +69,8 @@ export default Component.extend(Notifier, {
|
|||
this.get('orgSvc').saveGlobalSetting('SECTION-TRELLO', this.get('trelloCreds'));
|
||||
}
|
||||
|
||||
this.get('orgSvc').saveOrgSetting(orgId, 'flowchart', this.get('flowchart'));
|
||||
|
||||
this.notifySuccess(this.i18n.localize('saved'));
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue