diff --git a/admin-ui/src/app/features/bulkupload/masterdataupload/create/create.component.html b/admin-ui/src/app/features/bulkupload/masterdataupload/create/create.component.html index fad55451..cd9f7345 100644 --- a/admin-ui/src/app/features/bulkupload/masterdataupload/create/create.component.html +++ b/admin-ui/src/app/features/bulkupload/masterdataupload/create/create.component.html @@ -49,7 +49,7 @@

{{labelanddatas.title |translate}}

{{'genericerror.fieldValidation' | translate}} - + Download Excel
diff --git a/admin-ui/src/app/features/masterdata/document-category-mapping/document-category-mapping.component.ts b/admin-ui/src/app/features/masterdata/document-category-mapping/document-category-mapping.component.ts index 96e5cf15..fbfdced5 100644 --- a/admin-ui/src/app/features/masterdata/document-category-mapping/document-category-mapping.component.ts +++ b/admin-ui/src/app/features/masterdata/document-category-mapping/document-category-mapping.component.ts @@ -56,15 +56,16 @@ export class DocumentCategoryMappingComponent implements OnInit { }); this.docCategoryMapping.setMappedDoc(this.allDocCategoryList[0]); this.docCategoryMapping.currentMappedDocList.subscribe(response => { - this.docCategoryMapping.getMappedDoc(response.code, response.langCode).subscribe(async mappedDoc => { - if (mappedDoc && mappedDoc.response) { - await this.getUnMappedDoc(); - this.subtractingMappedDocFromUnMappedDoc(mappedDoc.response, this.unMappedDoc); - this.showSpinner = false; - } else { - this.mappedDocList = []; - this.unMappedDoc = []; - } + this.docCategoryMapping.getMappedDoc(response.code, response.langCode).subscribe(mappedDoc => { + if (mappedDoc && mappedDoc.response) { + this.getUnMappedDoc().then(() => { + this.subtractingMappedDocFromUnMappedDoc(mappedDoc.response, this.unMappedDoc); + this.showSpinner = false; + }); + } else { + this.mappedDocList = []; + this.unMappedDoc = []; + } }); }); } @@ -125,18 +126,19 @@ export class DocumentCategoryMappingComponent implements OnInit { this.selectedItem = item['code']; this.docCategoryMapping.setMappedDoc(item); this.docCategoryMapping.currentMappedDocList.subscribe(response => { - this.docCategoryMapping.getMappedDoc(response.code, response.langCode).subscribe(async data => { + this.docCategoryMapping.getMappedDoc(response.code, response.langCode).subscribe(data => { if (data && data.response && data.response.documents) { - await this.getUnMappedDoc(); - this.subtractingMappedDocFromUnMappedDoc(data.response.documents, this.unMappedDoc); - this.showSpinner = false; + this.getUnMappedDoc().then(() => { + this.subtractingMappedDocFromUnMappedDoc(data.response.documents, this.unMappedDoc); + this.showSpinner = false; + }); } }); }); } onClose(mappedItem: object, index: number) { - this.docCategoryMapping.updateUnMappeddoc(this.selectedItem, mappedItem['code']).subscribe(async data => { + this.docCategoryMapping.updateUnMappeddoc(this.selectedItem, mappedItem['code']).subscribe(data => { //console.log('Data', data); }); if (mappedItem && (index >= 0)) { @@ -150,7 +152,7 @@ export class DocumentCategoryMappingComponent implements OnInit { } onAdd(unMappedItem: object, index: number) { - this.docCategoryMapping.updateMappedDoc(this.selectedItem, unMappedItem['code']).subscribe(async data => { + this.docCategoryMapping.updateMappedDoc(this.selectedItem, unMappedItem['code']).subscribe(data => { //console.log('Data', data); }); if (unMappedItem && (index >= 0) ) { diff --git a/admin-ui/src/app/features/masterdata/list-view/list-view.component.ts b/admin-ui/src/app/features/masterdata/list-view/list-view.component.ts index f265f786..ad493b14 100644 --- a/admin-ui/src/app/features/masterdata/list-view/list-view.component.ts +++ b/admin-ui/src/app/features/masterdata/list-view/list-view.component.ts @@ -81,8 +81,8 @@ export class ListViewComponent implements OnDestroy { } } - loadBlacklistedWords() { - return new Promise(async (resolve, reject) => { + loadBlacklistedWords(): void { + new Promise(async (resolve, reject) => { const data = []; await this.getMasterDataTypeValues('all').then(response => { if (response['data']) { diff --git a/admin-ui/src/app/features/masterdata/single-view/single-view.component.ts b/admin-ui/src/app/features/masterdata/single-view/single-view.component.ts index c2391fb3..a5ec0a93 100644 --- a/admin-ui/src/app/features/masterdata/single-view/single-view.component.ts +++ b/admin-ui/src/app/features/masterdata/single-view/single-view.component.ts @@ -213,11 +213,11 @@ export class SingleViewComponent implements OnDestroy { disableClose: true }) .afterClosed() - .subscribe(() => + .subscribe(() => { this.router.navigateByUrl( `admin/masterdata/${this.masterdataType}/view` - ) - ); + ); + }); } changePage(location: string) { diff --git a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html index f764fcd6..669230a0 100644 --- a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html +++ b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.html @@ -14,19 +14,24 @@
+ - + + - + +
Packet Status Information
{{'packet-status.id' | translate}}{{data[0].registrationId}}{{'packet-status.id' | translate}}{{data[0].registrationId}}
{{'packet-status.status' | translate}}{{statusCheck}}{{'packet-status.status' | translate}}{{statusCheck}}
+ - - + + @@ -50,6 +55,10 @@

{{item.transactionTypeCode.replace("

Timeline
{{'packet-status.viewMore' | translate}}{{'packet-status.viewLess' | translate}} + {{'packet-status.viewMore' | translate}}{{'packet-status.viewLess' | translate}} keyboard_arrow_down keyboard_arrow_up
+ + + + diff --git a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.scss b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.scss index 316c109c..361bfa6e 100644 --- a/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.scss +++ b/admin-ui/src/app/features/packet-status/packet-status/packet-status.component.scss @@ -174,4 +174,9 @@ h3 { font-size: 10.5px; +} + +caption { + font-size: 1.2em; + font-weight: bold; } \ No newline at end of file diff --git a/admin-ui/src/app/features/resources/center/edit/edit.component.ts b/admin-ui/src/app/features/resources/center/edit/edit.component.ts index 509d41d3..1fae495c 100644 --- a/admin-ui/src/app/features/resources/center/edit/edit.component.ts +++ b/admin-ui/src/app/features/resources/center/edit/edit.component.ts @@ -462,9 +462,9 @@ export class EditComponent { disableClose: true }) .afterClosed() - .subscribe(() => + .subscribe(() => { this.router.navigateByUrl(`admin/resources/centers/view`) - ); + }); } handleChangeSecondaryLang = (fieldName: string) => { diff --git a/admin-ui/src/app/features/resources/devices/create/create.component.ts b/admin-ui/src/app/features/resources/devices/create/create.component.ts index 4fc09dfe..f798a0ac 100644 --- a/admin-ui/src/app/features/resources/devices/create/create.component.ts +++ b/admin-ui/src/app/features/resources/devices/create/create.component.ts @@ -330,7 +330,10 @@ export class CreateComponent{ case: 'MESSAGE' }, disableClose: true - }).afterClosed().subscribe(() => this.router.navigateByUrl('admin/resources/devices/view')); + }).afterClosed() + .subscribe(() => { + this.router.navigateByUrl('admin/resources/devices/view') + }); } setHeaderData() { @@ -581,8 +584,8 @@ export class CreateComponent{ disableClose: true }) .afterClosed() - .subscribe(() => + .subscribe(() => { this.router.navigateByUrl(`admin/resources/devices/view`) - ); + }); } } diff --git a/admin-ui/src/app/features/resources/machines/create/create.component.ts b/admin-ui/src/app/features/resources/machines/create/create.component.ts index eb29901c..a13ca63b 100644 --- a/admin-ui/src/app/features/resources/machines/create/create.component.ts +++ b/admin-ui/src/app/features/resources/machines/create/create.component.ts @@ -332,9 +332,9 @@ export class CreateComponent { disableClose: true, }) .afterClosed() - .subscribe(() => + .subscribe(() => { this.router.navigateByUrl('admin/resources/machine/view') - ); + }); } setPrimaryData() { @@ -596,8 +596,8 @@ export class CreateComponent { disableClose: true, }) .afterClosed() - .subscribe(() => + .subscribe(() => { this.router.navigateByUrl(`admin/resources/machines/view`) - ); + }); } } diff --git a/admin-ui/src/app/features/resources/users/create/create.component.scss b/admin-ui/src/app/features/resources/users/create/create.component.scss index e8fb49a2..e6ad12a8 100644 --- a/admin-ui/src/app/features/resources/users/create/create.component.scss +++ b/admin-ui/src/app/features/resources/users/create/create.component.scss @@ -1,5 +1,5 @@ p { - font-family: Lato; + font-family: "Lato", sans-serif; } .example-form-field { diff --git a/admin-ui/src/app/features/resources/users/create/create.component.ts b/admin-ui/src/app/features/resources/users/create/create.component.ts index aeb9fbc9..0f58716b 100644 --- a/admin-ui/src/app/features/resources/users/create/create.component.ts +++ b/admin-ui/src/app/features/resources/users/create/create.component.ts @@ -193,7 +193,10 @@ export class CreateComponent{ case: 'MESSAGE' }, disableClose: true - }).afterClosed().subscribe(() => this.router.navigateByUrl('admin/resources/devices/view')); + }).afterClosed() + .subscribe(() => { + this.router.navigateByUrl('admin/resources/devices/view') + }); } ngOnDestroy() { @@ -333,9 +336,7 @@ export class CreateComponent{ if (response.response.data) { this.data = response.response.data; if(url === "zoneuser"){ - this.primaryData = {userId:this.data[0].userId, zone:this.data[0].zoneCode, regCenterId:this.data[0].regCenterId, name: this.data[0].userName} - }else{ - this.primaryData = {userId:this.data[0].userId, zone:this.data[0].zoneCode, regCenterId:this.data[0].regCenterId, name: this.data[0].userName} + this.primaryData = {userId:this.data[0].userId, zone:this.data[0].zoneCode, regCenterId:this.data[0].regCenterId, name: this.data[0].userName}; } this.initializeheader(); } else { diff --git a/admin-ui/src/app/shared/dialog/dialog.component.html b/admin-ui/src/app/shared/dialog/dialog.component.html index e0473b63..4468206d 100644 --- a/admin-ui/src/app/shared/dialog/dialog.component.html +++ b/admin-ui/src/app/shared/dialog/dialog.component.html @@ -5,6 +5,7 @@

{{ input.title[primaryLangCode] }}

Error Information
Error Message
{{errorMessage}}
+
Missing Data Table