awf-test-lib 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/lib/shared/contact/contact.component.html +1 -1
- package/src/lib/shared/contact/contact.component.ts +2 -7
- package/src/lib/shared/contact-support/contact-support.component.ts +2 -8
- package/src/lib/shared/dashboard/dashboard.component.html +3 -3
- package/src/lib/shared/maintenance-list/maintenance-list.component.html +2 -1
package/package.json
CHANGED
@@ -70,17 +70,12 @@ export class ContactComponent implements OnChanges {
|
|
70
70
|
|
71
71
|
onSubmit() {
|
72
72
|
this.submitted = true;
|
73
|
-
|
73
|
+
|
74
74
|
if (this.form.invalid) {
|
75
|
-
this.messageService.add({
|
76
|
-
severity: 'error',
|
77
|
-
summary: 'Error',
|
78
|
-
detail: 'The form is invalid',
|
79
|
-
});
|
75
|
+
this.messageService.add({ severity: 'error', summary: this.translate.summaryError, detail: this.translate.invalidForm });
|
80
76
|
return;
|
81
77
|
}
|
82
78
|
|
83
|
-
console.log(this.form.value.pms);
|
84
79
|
let detailedPmJob = {} as DetailedPmJob;
|
85
80
|
detailedPmJob.name = this.form.value.name;
|
86
81
|
detailedPmJob.phone = this.form.value.phone;
|
@@ -154,19 +154,13 @@ export class ContactSupportComponent implements OnInit, OnChanges {
|
|
154
154
|
|
155
155
|
onSubmit() {
|
156
156
|
this.submitted = true;
|
157
|
-
|
158
157
|
if (this.form.invalid) {
|
159
|
-
this.messageService.add({
|
160
|
-
severity: 'error',
|
161
|
-
summary: 'Error',
|
162
|
-
detail: 'The form is invalid',
|
163
|
-
});
|
158
|
+
this.messageService.add({ severity: 'error', summary: this.globaltranslate.summaryError, detail: this.globaltranslate.invalidForm });
|
164
159
|
return;
|
165
160
|
}
|
166
161
|
this.contacted();
|
167
|
-
|
168
|
-
|
169
162
|
}
|
163
|
+
|
170
164
|
preventStringKeypress(event: any): void {
|
171
165
|
if (
|
172
166
|
isNaN(Number(String.fromCharCode(event.charCode))) ||
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<div class="row">
|
5
5
|
<div class="col-md-8">
|
6
6
|
<div class="row">
|
7
|
-
<div class="col-md-12 card-bg" routerLink="./systems">
|
7
|
+
<div class="col-md-12 card-bg" style="cursor: pointer;" routerLink="./systems">
|
8
8
|
<div class="conteur">
|
9
9
|
<img class="d-block mx-auto" height="60px" src="assets/img/GEPortal/tools.png">
|
10
10
|
<h3 class="counter text-center mt-4">{{systems.length}} {{translate.systems}}</h3>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<br>
|
15
15
|
|
16
16
|
<div class="row">
|
17
|
-
<div class="col-md-12 card-bg" routerLink="./maintenance">
|
17
|
+
<div class="col-md-12 card-bg" style="cursor: pointer;" routerLink="./maintenance">
|
18
18
|
<div class="conteur conteur bg--primary">
|
19
19
|
<img class="d-block mx-auto " height="60px" src="assets/img/GEPortal/calendar-check.png">
|
20
20
|
<h3 class="counter text-center mt-4">{{toBeScheduledMaintenanceList.length}} {{translate.upComing}}</h3>
|
@@ -55,7 +55,7 @@
|
|
55
55
|
</div>
|
56
56
|
</div>
|
57
57
|
<div class="col-md-4" >
|
58
|
-
<div routerLink="./contact" class="card- d-grid text-center justify-content-center align-items-center p-5">
|
58
|
+
<div routerLink="./contact" class="card- d-grid text-center justify-content-center align-items-center p-5" style="cursor: pointer;">
|
59
59
|
<img src="assets/img/GEPortal/phone.png" width="80px" class="img-fluid mx-auto">
|
60
60
|
<h5 class="mt-5"> {{ translate.contact}}</h5>
|
61
61
|
</div>
|
@@ -1,4 +1,5 @@
|
|
1
|
-
<p-table #dt [value]="maintenanceList" responsiveLayout="stack" [rows]="10" [showCurrentPageReport]="true" [rowsPerPageOptions]="[5,10,25,50]"
|
1
|
+
<p-table #dt [value]="maintenanceList" responsiveLayout="stack" [rows]="10" [showCurrentPageReport]="true" [rowsPerPageOptions]="[5,10,25,50]"
|
2
|
+
[globalFilterFields]="['systemId','pmJob.caseId','systemName','pmJob.workorderNumber','pmJob.startDateTime','pmJob.endDateTime','pmJob.case_type','pmJob.case_category','status']"
|
2
3
|
[rowHover]="true" dataKey="id" [currentPageReportTemplate]="globaltranslate.countPages" [first]="first">
|
3
4
|
<ng-template pTemplate="caption">
|
4
5
|
<div>
|