WIP: Allow jobs to be submitted in paused
status
#104318
@ -28,7 +28,7 @@ import StatusFilterBar from '@/components/StatusFilterBar.vue';
|
|||||||
export default {
|
export default {
|
||||||
name: 'JobsTable',
|
name: 'JobsTable',
|
||||||
props: ['activeJobID'],
|
props: ['activeJobID'],
|
||||||
emits: ['tableRowClicked', 'activeJobDeleted'],
|
emits: ['tableRowClicked', 'activeJobDeleted', 'jobDeleted'],
|
||||||
components: {
|
components: {
|
||||||
JobActionsBar,
|
JobActionsBar,
|
||||||
StatusFilterBar,
|
StatusFilterBar,
|
||||||
@ -166,7 +166,10 @@ export default {
|
|||||||
if (row) promise = row.delete();
|
if (row) promise = row.delete();
|
||||||
else promise = Promise.resolve();
|
else promise = Promise.resolve();
|
||||||
promise.finally(() => {
|
promise.finally(() => {
|
||||||
this.$emit('activeJobDeleted', jobUpdate.id);
|
this.$emit('jobDeleted', jobUpdate.id);
|
||||||
|
if (jobUpdate.id == this.activeJobID) {
|
||||||
|
this.$emit('activeJobDeleted', jobUpdate.id);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (row) promise = this.tabulator.updateData([jobUpdate]);
|
if (row) promise = this.tabulator.updateData([jobUpdate]);
|
||||||
|
Loading…
Reference in New Issue
Block a user