Css editor view

This commit is contained in:
Jiiks 2018-01-30 13:20:42 +02:00
parent 031e93185a
commit 6385c15236
5 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@ export default class {
static async show() {
const t = await ClientIPC.send('openCssEditor', {});
if (t === 1) ClientIPC.send('setCss', { css: DOM.getStyleCss('bd-customcss') });
ClientIPC.send('setCss', { css: DOM.getStyleCss('bd-customcss') });
ClientIPC.on('bd-update-css', this.updateCss);
}

View File

@ -45,7 +45,7 @@
// Imports
import { Settings } from '../../modules';
import { SidebarView, Sidebar, SidebarItem, ContentColumn } from './sidebar';
import { CoreSettings, UISettings, EmoteSettings } from './bd';
import { CoreSettings, UISettings, EmoteSettings, CssEditorView } from './bd';
import { SvgX } from './common';
// Constants
@ -79,7 +79,7 @@
},
components: {
SidebarView, Sidebar, SidebarItem, ContentColumn,
CoreSettings, UISettings, EmoteSettings,
CoreSettings, UISettings, EmoteSettings, CssEditorView,
SvgX
},
methods: {

View File

@ -46,7 +46,7 @@
<script>
// Imports
import CssEditor from '../../';
import { CssEditor } from '../../../modules';
import { SettingsWrapper } from './';
import { SettingSwitch, FormButton } from '../common';
@ -57,7 +57,7 @@
},
methods: {
openInternalEditor() {
CssEditor.show();
},
settingClicked() {
}

View File

@ -2,4 +2,4 @@ export { default as SettingsWrapper } from './SettingsWrapper.vue';
export { default as CoreSettings } from './CoreSettings.vue';
export { default as UISettings } from './UISettings.vue';
export { default as EmoteSettings } from './EmoteSettings.vue';
export { default as CssEditor } from './CssEditor.vue';
export { default as CssEditorView } from './CssEditor.vue';

View File

@ -71,7 +71,7 @@ class DOM {
static getStyleCss(id) {
const exists = this.getElement(`bd-styles > #${id}`);
return exists.textContent || '';
return exists ? exists.textContent : '';
}
static deleteTheme(id) {