Skip to content

Commit

Permalink
fix: joblist reset fix
Browse files Browse the repository at this point in the history
  • Loading branch information
simllll committed Oct 15, 2020
1 parent 93eb6e2 commit 8048318
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,26 @@
"mongodb": "^3.6.2",
"@hapi/hapi": "^20.0.1",
"@hapi/inert": "^6.0.3",
"@hokify/agenda": "^4.0.6",
"@hokify/agenda": "^4.0.20",
"async": "^3.2.0",
"body-parser": "^1.19.0",
"commander": "^6.1.0",
"express": "^4.17.1",
"semver": "^7.3.2"
},
"devDependencies": {
"@hokify/eslint-config": "^0.5.5",
"@hokify/eslint-config": "^0.5.9",
"@typescript-eslint/eslint-plugin": "^4.4.1",
"@typescript-eslint/parser": "^4.4.1",
"ava": "^3.13.0",
"eslint": "^7.11.0",
"eslint-plugin-react-hooks": "^4.1.2",
"eslint-plugin-unicorn": "^22.0.0",
"nodemon": "^2.0.4",
"nodemon": "^2.0.5",
"npm-run-all": "^4.1.5",
"prettier": "^2.1.2",
"supertest": "^5.0.0",
"typescript": "^4.0.3",
"webpack": "^5.1.0"
"webpack": "^5.1.1"
}
}
10 changes: 8 additions & 2 deletions public/app/js/joblist.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ const jobList = Vue.component('job-list', {
});
}
},
watch: {
jobs() {
// reset multijobs when jobs have changed
this.multijobs = [];
}
},
methods: {
sort(s) {
// if s == current sort, reverse
Expand All @@ -36,11 +42,11 @@ const jobList = Vue.component('job-list', {
},
sendQueued() {
this.$emit('confirm-multi-requeue', this.multijobs);
this.multijobs = [];
// this.multijobs = [];
},
sendDelete() {
this.$emit('confirm-multi-delete', this.multijobs);
this.multijobs = [];
// this.multijobs = [];
},
cleanMulti() {
return console.log('received Clean Multi');
Expand Down

0 comments on commit 8048318

Please sign in to comment.