diff --git a/src/components/TheSidebar.vue b/src/components/TheSidebar.vue index 0b138e22..c6ce91cd 100644 --- a/src/components/TheSidebar.vue +++ b/src/components/TheSidebar.vue @@ -147,15 +147,17 @@ export default class TheSidebarAlt extends Mixins(BaseMixin) { } showInNavi(route: AppRoute): boolean { - if (['shutdown', 'error', 'disconnected'].includes(this.klippy_state) && !route.alwaysShow) return false + let bool = true - if (route.title === 'Webcam') return this.boolNaviWebcam + if (['shutdown', 'error', 'disconnected'].includes(this.klippy_state) && !route.alwaysShow) bool = false - if (route.moonrakerComponent) return this.moonrakerComponents.includes(route.moonrakerComponent) - if (route.registeredDirectory) return this.registeredDirectories.includes(route.registeredDirectory) - if (route.klipperComponent) return (route.klipperComponent in this.klipperConfigfileSettings) + if (route.title === 'Webcam' && !this.boolNaviWebcam) bool = false - return true + if (route.moonrakerComponent && !this.moonrakerComponents.includes(route.moonrakerComponent)) bool = false + if (route.registeredDirectory && !this.registeredDirectories.includes(route.registeredDirectory)) bool = false + if (route.klipperComponent && !(route.klipperComponent in this.klipperConfigfileSettings)) bool = false + + return bool } mounted() { diff --git a/src/components/panels/GcodefilesPanel.vue b/src/components/panels/GcodefilesPanel.vue index 5ca2b526..9a0eb9ae 100644 --- a/src/components/panels/GcodefilesPanel.vue +++ b/src/components/panels/GcodefilesPanel.vue @@ -268,13 +268,13 @@ {{ $t('Files.Cancel')}} - {{$t('Files.StartPrint')}} + {{$t('Files.StartPrint')}} - + mdi-play {{ $t('Files.PrintStart')}} diff --git a/src/components/panels/HistoryListPanel.vue b/src/components/panels/HistoryListPanel.vue index 78e0202d..c9f0fe65 100644 --- a/src/components/panels/HistoryListPanel.vue +++ b/src/components/panels/HistoryListPanel.vue @@ -131,7 +131,7 @@ mdi-text-box-search {{ $t('History.Details') }} - + mdi-printer {{ $t('History.Reprint') }} diff --git a/src/components/panels/JobqueuePanel.vue b/src/components/panels/JobqueuePanel.vue index c5bf1e1f..3e2d7d77 100644 --- a/src/components/panels/JobqueuePanel.vue +++ b/src/components/panels/JobqueuePanel.vue @@ -13,6 +13,7 @@ icon tile v-if="queueState === 'paused'" + :disabled="!klipperReadyForGui" >