fix: update job_queue start command
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
3 files changed
+7
-7
No files matched your search
@@ -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
@@ -174,7 +174,7 @@
|
||||
"AllJobs": "All Jobs",
|
||||
"Empty": "Empty",
|
||||
"Delete": "Delete",
|
||||
"Resume": "Resume",
|
||||
"Start": "Start",
|
||||
"Pause": "Pause"
|
||||
},
|
||||
"Console": {
|
||||
|
||||
@@ -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(_) {
|
||||
|
||||
Reference in new issue
Block a user