Skip to content

Commit

Permalink
refactor: remove unused dark attribute in v-snackbar, v-tab
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Dec 11, 2023
1 parent 3e8f0eb commit b725339
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 35 deletions.
2 changes: 1 addition & 1 deletion src/components/TheEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</v-card-text>
</panel>
</v-dialog>
<v-snackbar v-model="loaderBool" :timeout="-1" :value="true" fixed right bottom :dark="darkAttribute">
<v-snackbar v-model="loaderBool" :timeout="-1" :value="true" fixed right bottom>
<div>
{{ snackbarHeadline }}
<br />
Expand Down
18 changes: 2 additions & 16 deletions src/components/TheTimelapseRenderingSnackbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,12 @@

<template>
<div>
<v-snackbar
v-model="boolShowDialogRunning"
:timeout="-1"
:value="true"
fixed
right
bottom
:dark="darkAttribute">
<v-snackbar v-model="boolShowDialogRunning" :timeout="-1" :value="true" fixed right bottom>
<div>{{ $t('Timelapse.TimelapseRendering') }}...</div>
<v-progress-linear v-if="progress > 0" class="mt-2" :value="progress" indeterminate></v-progress-linear>
<v-progress-linear v-if="progress === 0" class="mt-2" indeterminate></v-progress-linear>
</v-snackbar>
<v-snackbar
v-model="boolShowDialogSuccess"
:timeout="5000"
:value="true"
fixed
right
bottom
:dark="darkAttribute">
<v-snackbar v-model="boolShowDialogSuccess" :timeout="5000" :value="true" fixed right bottom>
<div>
{{ $t('Timelapse.TimelapseRenderingSuccessful') }}
<br />
Expand Down
9 changes: 1 addition & 8 deletions src/components/TheTopbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,7 @@
<the-settings-menu />
<the-top-corner-menu />
</v-app-bar>
<v-snackbar
v-model="uploadSnackbar.status"
:timeout="-1"
:value="true"
fixed
right
bottom
:dark="darkAttribute">
<v-snackbar v-model="uploadSnackbar.status" :timeout="-1" :value="true" fixed right bottom>
<strong>{{ $t('App.TopBar.Uploading') }} {{ uploadSnackbar.filename }}</strong>
<br />
{{ Math.round(uploadSnackbar.percent) }} % @ {{ formatFilesize(Math.round(uploadSnackbar.speed)) }}/s
Expand Down
2 changes: 1 addition & 1 deletion src/components/TheUploadSnackbar.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-snackbar v-if="show" :timeout="-1" :value="true" fixed right bottom :dark="darkAttribute">
<v-snackbar v-if="show" :timeout="-1" :value="true" fixed right bottom>
<span v-if="maxNumber > 1" class="mr-1">({{ currentNumber }}/{{ maxNumber }})</span>
<strong>{{ $t('Editor.Uploading') + ' ' + filename }}</strong>
<br />
Expand Down
9 changes: 1 addition & 8 deletions src/components/panels/Machine/ConfigFilesPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -515,14 +515,7 @@
</panel>
</v-dialog>

<v-snackbar
v-model="uploadSnackbar.status"
:timeout="-1"
:value="true"
fixed
right
bottom
:dark="darkAttribute">
<v-snackbar v-model="uploadSnackbar.status" :timeout="-1" :value="true" fixed right bottom>
<span v-if="uploadSnackbar.max > 1" class="mr-1">
({{ uploadSnackbar.number }}/{{ uploadSnackbar.max }})
</span>
Expand Down
2 changes: 1 addition & 1 deletion src/components/panels/StatusPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
</v-container>
<v-divider class="mt-0 mb-0"></v-divider>
</template>
<v-tabs v-model="activeTab" fixed-tabs :dark="darkAttribute">
<v-tabs v-model="activeTab" fixed-tabs>
<v-tab v-if="current_filename" href="#status">{{ $t('Panels.StatusPanel.Status') }}</v-tab>
<v-tab href="#files">{{ $t('Panels.StatusPanel.Files') }}</v-tab>
<v-tab href="#jobqueue">{{ $t('Panels.StatusPanel.Jobqueue', { count: jobsCount }) }}</v-tab>
Expand Down

0 comments on commit b725339

Please sign in to comment.