fix: update job_queue start command

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2021-12-07 23:01:02 +01:00
1 parent d654518c65
commit ca368867e2
3 files changed
+7 -7

No files matched your search

+5 -5
View File
@@ -8,8 +8,8 @@
<template v-slot:buttons>
<v-btn
color="success"
@click="resumeJobqueue"
:loading="loadings.includes('resumeJobqueue')"
@click="startJobqueue"
:loading="loadings.includes('startJobqueue')"
icon
tile
v-if="queueState === 'paused'"
@@ -19,7 +19,7 @@
<template v-slot:activator="{ on, attrs }">
<v-icon v-bind="attrs" v-on="on">mdi-play</v-icon>
</template>
<span>{{ $t('JobQueue.Resume') }}</span>
<span>{{ $t('JobQueue.Start') }}</span>
</v-tooltip>
</v-btn>
<v-btn
@@ -191,8 +191,8 @@ export default class JobqueuePanel extends Mixins(BaseMixin) {
this.$store.dispatch('server/jobQueue/deleteFromQueue', [item.job_id])
}
resumeJobqueue() {
this.$store.dispatch('server/jobQueue/resume')
startJobqueue() {
this.$store.dispatch('server/jobQueue/start')
}
pauseJobqueue() {
+1 -1
View File
@@ -174,7 +174,7 @@
"AllJobs": "All Jobs",
"Empty": "Empty",
"Delete": "Delete",
"Resume": "Resume",
"Start": "Start",
"Pause": "Pause"
},
"Console": {
+1 -1
View File
@@ -35,7 +35,7 @@ export const actions: ActionTree<ServerJobQueueState, RootState> = {
},
start(_) {
Vue.$socket.emit('server.job_queue.start', { }, { loading: 'resumeJobqueue' })
Vue.$socket.emit('server.job_queue.start', { }, { loading: 'startJobqueue' })
},
pause(_) {