diff options
author | Phil Hughes <me@iamphill.com> | 2018-04-16 18:29:34 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-04-18 16:34:50 +0300 |
commit | 8de5cea076b0bc40e84f13a7b936cb06cb39f291 (patch) | |
tree | 86146f14448ee3da46ec48737fabbdb35458caca /app/assets/javascripts/ide/index.js | |
parent | bdc437fc7620c285784d532d907811dc4ea378da (diff) |
moved CSS out of the components
hooked up commit section to activity bar
fixed commit section SVGs not loading
added the different theme defintions to the activity bar
Diffstat (limited to 'app/assets/javascripts/ide/index.js')
-rw-r--r-- | app/assets/javascripts/ide/index.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/assets/javascripts/ide/index.js b/app/assets/javascripts/ide/index.js index cbfb3dc54f2..bbe3398e416 100644 --- a/app/assets/javascripts/ide/index.js +++ b/app/assets/javascripts/ide/index.js @@ -14,12 +14,17 @@ function initIde(el) { components: { ide, }, + created() { + this.$store.dispatch('setEmptyStateSvgs', { + emptyStateSvgPath: el.dataset.emptyStateSvgPath, + noChangesStateSvgPath: el.dataset.noChangesStateSvgPath, + committedStateSvgPath: el.dataset.committedStateSvgPath, + }); + }, render(createElement) { return createElement('ide', { props: { emptyStateSvgPath: el.dataset.emptyStateSvgPath, - noChangesStateSvgPath: el.dataset.noChangesStateSvgPath, - committedStateSvgPath: el.dataset.committedStateSvgPath, }, }); }, |