fix title ribbon maintenance
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ declare module signalr_alarms {
|
||||
dateTime: Date,
|
||||
DateTime: Date,
|
||||
isWarning: boolean,
|
||||
restorationIsEnabled: boolean,
|
||||
restorationIsEnabled: boolean
|
||||
}
|
||||
|
||||
interface maintenanceAlarm extends genericAlarm{
|
||||
|
||||
@@ -38,7 +38,6 @@ export default class alarmsList extends Vue {
|
||||
|
||||
|
||||
public get serviceRequests(): Array<AlarmModel> {
|
||||
debugger
|
||||
let model = (this.$store.state as AppModel);
|
||||
return model.alarms.serviceAlarms.sort((a, b) => {
|
||||
return moment(a.date).diff(moment(b.date));
|
||||
|
||||
@@ -162,15 +162,16 @@ export class Hub {
|
||||
}
|
||||
|
||||
private static expiredMaintenances(status) {
|
||||
debugger
|
||||
console.log(status);
|
||||
for (const key in status) {
|
||||
if (status.hasOwnProperty(key)) {
|
||||
const element = status[key];
|
||||
if(element.createdByCms){
|
||||
alarmsModelActions.addServiceAlarm(store, { guid: "maint_" + element.id, id: element.id, dateTime: new Date(element.expirationDate), title: null} as any)
|
||||
alarmsModelActions.addServiceAlarm(store, { guid: "maint_" + element.id, id: element.id, dateTime: new Date(element.expirationDate), message: null} as any)
|
||||
}
|
||||
else{
|
||||
alarmsModelActions.addServiceAlarm(store, { guid: "maint_" + element.id, id: element.id, dateTime: new Date(element.expirationDate), title: element.title } as any)
|
||||
alarmsModelActions.addServiceAlarm(store, { guid: "maint_" + element.id, id: element.id, dateTime: new Date(element.expirationDate), message: element.title } as any)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user