diff --git a/components.d.ts b/components.d.ts index 3946d5e6c3..38d10ec84d 100644 --- a/components.d.ts +++ b/components.d.ts @@ -35,6 +35,7 @@ declare module 'vue' { AppSwitch: typeof import('./src/components/ui/AppSwitch.vue')['default'] AppTable: typeof import('./src/components/ui/AppTable.vue')['default'] AppToolsDrawer: typeof import('./src/components/layout/AppToolsDrawer.vue')['default'] + AppUploadAndPrintBtn: typeof import('./src/components/layout/AppUploadAndPrintBtn.vue')['default'] AppUserMenu: typeof import('./src/components/layout/AppUserMenu.vue')['default'] AppWarnings: typeof import('./src/components/common/AppWarnings.vue')['default'] BedScrewsAdjustDialog: typeof import('./src/components/common/BedScrewsAdjustDialog.vue')['default'] diff --git a/src/components/layout/AppBar.vue b/src/components/layout/AppBar.vue index 6a84467366..3c3718d844 100644 --- a/src/components/layout/AppBar.vue +++ b/src/components/layout/AppBar.vue @@ -44,7 +44,7 @@ > @@ -69,9 +69,14 @@ -
+
+ +
+ +
+ + + diff --git a/src/components/settings/GeneralSettings.vue b/src/components/settings/GeneralSettings.vue index 100a8adadc..f773104262 100644 --- a/src/components/settings/GeneralSettings.vue +++ b/src/components/settings/GeneralSettings.vue @@ -79,6 +79,19 @@ + + + + + + @@ -303,6 +316,18 @@ export default class GeneralSettings extends Mixins(StateMixin) { }) } + get showUploadAndPrint () { + return this.$store.state.config.uiSettings.general.showUploadAndPrint + } + + set showUploadAndPrint (value: boolean) { + this.$store.dispatch('config/saveByPath', { + path: 'uiSettings.general.showUploadAndPrint', + value, + server: true + }) + } + get confirmOnSaveConfigAndRestart () { return this.$store.state.config.uiSettings.general.confirmOnSaveConfigAndRestart } diff --git a/src/locales/en.yaml b/src/locales/en.yaml index 480a6c5d1e..1908bd827e 100644 --- a/src/locales/en.yaml +++ b/src/locales/en.yaml @@ -288,6 +288,7 @@ app: uncategorized: Uncategorized unretract_extra_length: Unretract Extra Length unretract_speed: Unretract Speed + upload_and_print: Upload and Print used: used username: Username variance: Variance @@ -522,6 +523,7 @@ app: show_rate_of_change: Show temperature rate of change show_relative_humidity: Show relative humidity show_save_config_and_restart: Save Config and Restart button in top navigation + show_upload_and_print: Show Upload and Print button in top navigation solid: Solid starts_with: Starts with theme_preset: Community preset diff --git a/src/store/config/state.ts b/src/store/config/state.ts index 8c6c512e39..693fb44e15 100644 --- a/src/store/config/state.ts +++ b/src/store/config/state.ts @@ -43,6 +43,7 @@ export const defaultState = (): ConfigState => { showRelativeHumidity: true, showBarometricPressure: true, showSaveConfigAndRestart: true, + showUploadAndPrint: true, flipConsoleLayout: false, cameraFullscreenAction: 'embed', topNavPowerToggle: null, diff --git a/src/store/config/types.ts b/src/store/config/types.ts index 10c56e9886..8a5d47fbce 100644 --- a/src/store/config/types.ts +++ b/src/store/config/types.ts @@ -66,6 +66,7 @@ export interface GeneralConfig { showRelativeHumidity: boolean; showBarometricPressure: boolean; showSaveConfigAndRestart: boolean; + showUploadAndPrint: boolean; flipConsoleLayout: boolean; cameraFullscreenAction: CameraFullscreenAction; topNavPowerToggle: null | string;