WIP: Allow jobs to be submitted in paused status #104318

Closed
David Zhang wants to merge 32 commits from David-Zhang-10/flamenco:submit-as-paused into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 526e0f98fb - Show all commits

View File

@ -28,7 +28,7 @@ import StatusFilterBar from '@/components/StatusFilterBar.vue';
export default {
name: 'JobsTable',
props: ['activeJobID'],
emits: ['tableRowClicked', 'activeJobDeleted'],
emits: ['tableRowClicked', 'activeJobDeleted', 'jobDeleted'],
components: {
JobActionsBar,
StatusFilterBar,
@ -166,7 +166,10 @@ export default {
if (row) promise = row.delete();
else promise = Promise.resolve();
promise.finally(() => {
this.$emit('activeJobDeleted', jobUpdate.id);
this.$emit('jobDeleted', jobUpdate.id);
if (jobUpdate.id == this.activeJobID) {
this.$emit('activeJobDeleted', jobUpdate.id);
}
});
} else {
if (row) promise = this.tabulator.updateData([jobUpdate]);