bugfix: macros interface settings -> list all macros

bugfix: margin between dashboard panels

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2020-08-30 23:36:38 +02:00
1 parent c0472dfb30
commit a40701d611
2 files changed
+12 -7

No files matched your search

@@ -1,3 +1,8 @@
<style>
.settings_dashboard_switch .v-messages {
display: none;
}
</style>
<template>
<v-card>
@@ -8,20 +13,20 @@
</v-list-item-content>
</v-list-item>
<v-divider class="my-2"></v-divider>
<v-card-text class="px-0 pb-0 pt-3 content">
<v-card-text class="px-0 pt-3 content">
<v-row>
<v-col class="px-10 py-0">
<v-switch v-model="boolShowWebcamOnDashboard" label="Webcam"></v-switch>
<v-switch v-model="boolShowWebcamOnDashboard" label="Webcam" class="settings_dashboard_switch mt-0"></v-switch>
</v-col>
</v-row>
<v-row>
<v-col class="px-10 py-0">
<v-switch v-model="boolShowTempchartOnDashboard" label="Tempchart"></v-switch>
<v-switch v-model="boolShowTempchartOnDashboard" label="Tempchart" class="settings_dashboard_switch mt-0"></v-switch>
</v-col>
</v-row>
<v-row>
<v-col class="px-10 py-0">
<v-switch v-model="boolShowConsoleOnDashboard" label="Console"></v-switch>
<v-switch v-model="boolShowConsoleOnDashboard" label="Console" class="settings_dashboard_switch mt-0"></v-switch>
</v-col>
</v-row>
</v-card-text>
+3 -3
View File
@@ -166,12 +166,12 @@ export default {
getAllMacros: state => {
let array = [];
for (let prop in state.config) {
for (let prop in state.printer.configfile.config) {
if (prop.startsWith('gcode_macro') &&
!Object.hasOwnProperty.call(state.config[prop], 'rename_existing')) {
!Object.hasOwnProperty.call(state.printer.configfile.config[prop], 'rename_existing')) {
array.push({
'name': prop.replace('gcode_macro ', ''),
'prop': state.config[prop]
'prop': state.printer.configfile.config[prop]
});
}
}