diff --git a/Step/wwwroot/src/components/maintenance.ts b/Step/wwwroot/src/components/maintenance.ts index c370756b..72e996fb 100644 --- a/Step/wwwroot/src/components/maintenance.ts +++ b/Step/wwwroot/src/components/maintenance.ts @@ -51,6 +51,10 @@ export default class Maintenance extends Vue { } } + public async reloadMaintenances(){ + await new MaintenanceService().GetMaintenances(); + } + public getTitleMaintenance(createdByCms,id,title){ if(createdByCms){ return this.$options.filters.localize("maint_" + id); @@ -131,8 +135,6 @@ export default class Maintenance extends Vue { } public createMaintenance(){ - this.selectedMaintenanceId = null; - this.enableMaintenance = false; ModalHelper.maintenanceModal.currentMaintenance = null; ModalHelper.ShowModal(CreateMaintenance); } diff --git a/Step/wwwroot/src/components/maintenance.vue b/Step/wwwroot/src/components/maintenance.vue index 798fcbd9..db0d3cde 100644 --- a/Step/wwwroot/src/components/maintenance.vue +++ b/Step/wwwroot/src/components/maintenance.vue @@ -21,6 +21,10 @@ +
+ + +
diff --git a/Step/wwwroot/src/modules/base-components/cards/maintenance-card.vue b/Step/wwwroot/src/modules/base-components/cards/maintenance-card.vue index 8649cb97..93a4a5d4 100644 --- a/Step/wwwroot/src/modules/base-components/cards/maintenance-card.vue +++ b/Step/wwwroot/src/modules/base-components/cards/maintenance-card.vue @@ -254,6 +254,9 @@ export default { service.guid = service.uid; alarmsModelActions.removeServiceAlarm(this.$store,service); } + + //Reload Maintenances + await new MaintenanceService().GetMaintenances(); }, existMantainance(){ if(this.selectedMaintenance.lastPerformedDate){