add workflow actions for manipulating server_state
This commit is contained in:
parent
b7b04a61d6
commit
c86c9fe9f4
14 changed files with 141 additions and 24 deletions
|
@ -152,7 +152,7 @@ const app = new Vue({
|
|||
this.currentStatus = STATUS_INITIAL;
|
||||
this.dataset.files = [];
|
||||
},
|
||||
save() {
|
||||
save(status) {
|
||||
// upload data to the server
|
||||
var _this = this;
|
||||
this.currentStatus = STATUS_SAVING;
|
||||
|
@ -177,6 +177,7 @@ const app = new Vue({
|
|||
/*
|
||||
Additional POST Data
|
||||
*/
|
||||
formData.append('server_state', status);
|
||||
formData.append('type', this.dataset.type);
|
||||
// formData.append('server_state', this.dataset.state);
|
||||
formData.append('rights', Number(this.dataset.rights));
|
||||
|
@ -395,10 +396,10 @@ const app = new Vue({
|
|||
}
|
||||
return true;
|
||||
},
|
||||
submit() {
|
||||
submit(status) {
|
||||
// alert('Submit to blah and show blah and etc.');
|
||||
// save it
|
||||
this.save();
|
||||
this.save(status);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue