18f995fce5
Fix restoreIsActive field
28 lines
953 B
TypeScript
28 lines
953 B
TypeScript
import { baseRestService } from "src/_base/baseRestService";
|
|
import { store, MachineInfoModel, machineInfoActions } from "src/store";
|
|
|
|
export class DataService extends baseRestService {
|
|
|
|
async GetSoftKeysConfiguration() {
|
|
let result = await this.Get("api/configuration/softKeys");
|
|
machineInfoActions.updateMachineInfo(store, { softKeys: result })
|
|
}
|
|
|
|
async GetNcSoftKeysConfiguration() {
|
|
let result = await this.Get("api/configuration/nc_softKeys");
|
|
machineInfoActions.updateMachineInfo(store, { ncSoftKeys: result })
|
|
}
|
|
|
|
async GetHeadsConfiguration() {
|
|
let result = await this.Get<Array<signalr_heads.headConfiguration>>("api/configuration/heads");
|
|
machineInfoActions.updateMachineInfo(store, { heads: result });
|
|
}
|
|
|
|
//async GetAlarmsResetConfiguration(){
|
|
// let result = await this.Get<Array<any>>("api/configuration/alarms");
|
|
// machineInfoActions.updateMachineInfo(store, { alarmsReset: result });
|
|
//}
|
|
}
|
|
|
|
|