refactor(appbar): change buttons to new design
This commit is contained in:
1 parent
d4cd31291d
commit
2b55058533
3 files changed
+14
-8
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-btn color="grey darken-3" class="ml-5 minwidth-0 px-2" @click="showSettings = true">
|
||||
<v-btn icon tile large @click="showSettings = true">
|
||||
<v-icon>mdi-cogs</v-icon>
|
||||
</v-btn>
|
||||
<v-dialog v-model="showSettings" width="900" persistent hide-overlay :fullscreen="isMobile">
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div>
|
||||
<v-menu bottom left :offset-y="true" :close-on-content-click="false" v-model="showMenu">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-btn color="grey darken-3" v-bind="attrs" v-on="on" class="ml-5 minwidth-0 px-2">
|
||||
<v-btn icon tile large v-bind="attrs" v-on="on">
|
||||
<v-icon>mdi-power-standby</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
@@ -11,30 +11,36 @@
|
||||
<v-spacer></v-spacer>
|
||||
<the-throttled-states></the-throttled-states>
|
||||
<input type="file" ref="fileUploadAndStart" :accept="validGcodeExtensions.join(', ')" style="display: none" @change="uploadAndStart" />
|
||||
<v-btn
|
||||
<v-btn tile large
|
||||
:icon="$vuetify.breakpoint.smAndDown"
|
||||
:text="$vuetify.breakpoint.mdAndUp"
|
||||
color="primary"
|
||||
class="mr-5 button-min-width-auto px-3 d-none d-sm-flex"
|
||||
class="button-min-width-auto px-3 d-none d-sm-flex"
|
||||
v-if="klippyIsConnected && saveConfigPending"
|
||||
:disabled="printerIsPrinting"
|
||||
:loading="loadings.includes('topbarSaveConfig')"
|
||||
@click="saveConfig">
|
||||
<v-icon class="d-md-none">mdi-content-save</v-icon><span class="d-none d-md-inline">{{ $t("App.TopBar.SAVE_CONFIG") }}</span>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
<v-btn tile large
|
||||
:icon="$vuetify.breakpoint.smAndDown"
|
||||
:text="$vuetify.breakpoint.mdAndUp"
|
||||
color="primary"
|
||||
class="mr-5 button-min-width-auto px-3 d-none d-sm-flex"
|
||||
class="button-min-width-auto px-3 d-none d-sm-flex file-upload-and-start"
|
||||
v-if="klippyIsConnected && ['standby', 'complete', 'cancelled'].includes(printer_state)"
|
||||
:loading="loadings.includes('btnUploadAndStart')"
|
||||
@click="btnUploadAndStart">
|
||||
<v-icon class="mr-md-2">mdi-file-upload</v-icon><span class="d-none d-md-inline">{{ $t("App.TopBar.UploadPrint") }}</span>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
<v-btn tile large
|
||||
:icon="$vuetify.breakpoint.smAndDown"
|
||||
:text="$vuetify.breakpoint.mdAndUp"
|
||||
color="error"
|
||||
class="button-min-width-auto px-3"
|
||||
v-if="klippyIsConnected"
|
||||
:loading="loadings.includes('topbarEmergencyStop')"
|
||||
@click="btnEmergencyStop">
|
||||
<v-icon class="mr-md-2">mdi-alert-circle-outline</v-icon><span class="d-none d-md-flex">{{ $t("App.TopBar.EmergencyStop") }}</span>
|
||||
<v-icon class="mr-md-2">mdi-alert-circle-outline</v-icon><span class="d-none d-md-inline">{{ $t("App.TopBar.EmergencyStop") }}</span>
|
||||
</v-btn>
|
||||
<the-settings-menu></the-settings-menu>
|
||||
<the-top-corner-menu></the-top-corner-menu>
|
||||
|
||||
Reference in new issue
Block a user