Skip to content

Commit f96ce1c

Browse files
committed
Fix file uplinks in mcs spacon console
1 parent dc154fe commit f96ce1c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

sim-ops-mcs/src/views/SpaCon.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,13 @@ export default {
7373
this.manual_stack[2] = { 'command': 'none' };
7474
7575
this.toggleArm();
76+
this.updateHistory(body.command);
77+
this.sendCommand(body);
78+
},
79+
updateHistory(command) {
7680
this.tc_history[2] = this.tc_history[1];
7781
this.tc_history[1] = this.tc_history[0];
78-
this.tc_history[0] = [body.command, '_'];
79-
this.sendCommand(body);
82+
this.tc_history[0] = [command, '_'];
8083
},
8184
sendCommand(body) {
8285
axios.post(`${appOption.soAPI}/control`, body)
@@ -117,11 +120,11 @@ export default {
117120
this.closeModal2();
118121
this.closeModal3();
119122
123+
this.updateHistory(`DHS_Uplink ${type}`);
120124
let body = { 'system': 'spacecraft', 'control': 'dhs_uploaded', 'value': `${type} > ${this.file_upload}`, 'command': `uploaded: ${type} > ${this.file_upload}` };
121125
axios.post(`${appOption.soAPI}/control`, body)
122126
.then((resp) => {
123-
this.control_recv = resp.data.status;
124-
this.control_recv_loading = false;
127+
this.tc_history[0][1] = this.resCommand(resp.data.status);
125128
})
126129
},
127130
onFileChange(event) {

0 commit comments

Comments
 (0)