Skip to content

Commit

Permalink
web: fix api endpoint and jobform extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
alfg committed Jan 4, 2020
1 parent ea0c3c5 commit cdd6dce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default {
},

deleteMachine(context, id, callback) {
return del(context, Endpoints.MachinesDelete(id), callback);
return del(context, Endpoints.MachinesId(id), callback);
},

deleteAllMachines(context, callback) {
Expand Down
5 changes: 4 additions & 1 deletion web/src/components/JobForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ export default {
onFileSelect(file) {
this.form.source = file;
this.form.dest = file.replace('src', 'dst').replace('.mp4', '/');
this.form.dest = file.replace('src', 'dst')
.replace('.mp4', '/')
.replace('.mov', '/')
.replace('.mkv', '/');
this.showFileBrowser = false;
},
Expand Down

0 comments on commit cdd6dce

Please sign in to comment.