Skip to content

Commit

Permalink
Get config from the right place: #4380
Browse files Browse the repository at this point in the history
  • Loading branch information
VirtualEvan committed Dec 6, 2020
1 parent 9dc7ce7 commit 12e3683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/draw-io/src/DrawIoEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ export default {
currentETag: null
}),
computed: {
...mapGetters(['getToken', 'configuration']),
...mapGetters(['getToken']),
loading() {
return this.content === ''
},
config() {
const { url = 'https://embed.diagrams.net', theme = 'minimal', autosave = false } =
this.configuration.applications.find(app => app.title.en === 'draw-io') || {}
this.$store.state.apps.fileEditors.find(editor => editor.app === 'draw-io').config || {}
return { url, theme, autosave: autosave ? 1 : 0 }
},
iframeSource() {
Expand Down

0 comments on commit 12e3683

Please sign in to comment.