From f5a2f0f4a87c845d88380883f8cebe4253b42c11 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Wed, 27 Feb 2019 19:19:29 +0000 Subject: [server/ipxe] Fix codemirror only loading on click bug & add the fixes for the tamas demo to the git --- webapp/src/components/IpxeBuilderModuleConfig.vue | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'webapp') diff --git a/webapp/src/components/IpxeBuilderModuleConfig.vue b/webapp/src/components/IpxeBuilderModuleConfig.vue index e9cd504..709a04b 100644 --- a/webapp/src/components/IpxeBuilderModuleConfig.vue +++ b/webapp/src/components/IpxeBuilderModuleConfig.vue @@ -63,9 +63,8 @@ cancel{{ $t('cancelIpxe') }} gavel{{ $t('buildIpxe') }} - - +
{{ $t('script') }}
@@ -82,7 +81,7 @@ - +
{{ $t('trust') }}
@@ -98,7 +97,7 @@ - +
{{ $t('general') }}
@@ -114,7 +113,7 @@ - +
{{ $t('console') }}
@@ -159,16 +158,20 @@ export default { ...mapGetters(['tabsDark', 'tabsColor', 'tabsSliderColor']) }, watch: { - scriptExpanded: function () { + scriptExpanded: async function () { + await this.$nextTick() if (this.scriptExpanded === 0) this.$refs.script.refresh() }, - certificateExpanded: function () { + certificateExpanded: async function () { + await this.$nextTick() if (this.certificateExpanded === 0) this.$refs.certificate.refresh() }, - generalExpanded: function () { + generalExpanded: async function () { + await this.$nextTick() if (this.generalExpanded === 0) this.$refs.general.refresh() }, - consoleExpanded: function () { + consoleExpanded: async function () { + await this.$nextTick() if (this.consoleExpanded === 0) this.$refs.console.refresh() } }, -- cgit v1.2.3-55-g7522