bugfix: hide macros with _ prefix on dashboard

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2020-12-09 21:34:34 +01:00
1 parent b0a3d49cc0
commit 35112e2ca0
1 file changed
+2
+2
View File
@@ -31,6 +31,7 @@ export default {
for (let prop in state.configfile.config) {
if (
prop.startsWith("gcode_macro") &&
!prop.startsWith("gcode_macro _") &&
!("rename_existing" in state.configfile.config[prop]) &&
!(hiddenMacros.indexOf(prop.replace("gcode_macro ", "").toLowerCase()) > -1)
) {
@@ -76,6 +77,7 @@ export default {
color: color,
target: value.target,
temperature: value.temperature,
power: 'power' in value ? value.power : null,
chartColor: getters["tempHistory/getDatasetColor"](name),
min_temp: state.configfile.config[key] !== undefined ? parseFloat(state.configfile.config[key].min_temp) : undefined,
max_temp: state.configfile.config[key] !== undefined ? parseFloat(state.configfile.config[key].max_temp) : undefined,