diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ac163b..f58b90f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## Frontend Release Notes +* ##### v5.10.1 - 2023-03-20 + + * Bugfix: compilation results table displaying [#30](https://github.com/YangCatalog/frontend/issues/30) + * ##### v5.10.0 - 2023-03-07 * Source code improved by npm lint diff --git a/admin-ui/CHANGELOG.md b/admin-ui/CHANGELOG.md index 18f7055..5196459 100644 --- a/admin-ui/CHANGELOG.md +++ b/admin-ui/CHANGELOG.md @@ -1,7 +1,5 @@ ## Admin UI Release Notes -* ##### vm.m.p - 2022-MM-DD - * ##### v5.5.0 - 2022-08-16 * No changes - released with other [deployment submodules](https://github.com/YangCatalog/deployment) diff --git a/yangcatalog-ui/CHANGELOG.md b/yangcatalog-ui/CHANGELOG.md index 1935b29..7d08383 100644 --- a/yangcatalog-ui/CHANGELOG.md +++ b/yangcatalog-ui/CHANGELOG.md @@ -1,7 +1,5 @@ ## YANG Catalog UI Release Notes -* ##### vm.m.p - 2022-MM-DD - * ##### v5.5.0 - 2022-08-16 * Check if regex is valid if using regex search [#97](https://github.com/YangCatalog/yangcatalog-ui/issues/97) diff --git a/yangcatalog-ui/package-lock.json b/yangcatalog-ui/package-lock.json index 910a19e..8e4ca10 100644 --- a/yangcatalog-ui/package-lock.json +++ b/yangcatalog-ui/package-lock.json @@ -9310,7 +9310,8 @@ }, "ansi-regex": { "version": "3.0.0", - "resolved": "", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha512-wFUFA5bg5dviipbQQ32yOQhl6gcJaJXiHE7dvR8VYPG97+J/GNC5FKGepKdEDUFeXRzDxPF1X/Btc8L+v7oqIQ==", "dev": true }, "ansi-styles": { diff --git a/yangcatalog-ui/src/app/app.component.ts b/yangcatalog-ui/src/app/app.component.ts index 3c7856c..3cc7daf 100644 --- a/yangcatalog-ui/src/app/app.component.ts +++ b/yangcatalog-ui/src/app/app.component.ts @@ -11,7 +11,6 @@ import { AppService } from './app.service'; styleUrls: ['./app.component.css'] }) export class AppComponent implements OnInit { - private toastr: ToastrService; defaultTitle = 'YANG Catalog'; @@ -20,22 +19,21 @@ export class AppComponent implements OnInit { private title: Title, private tracker: MatomoTracker, private dataService: AppService, - private toastrService: ToastrService) { - this.toastr = toastrService; - } + private toastrService: ToastrService) { } public showNotification() { this.dataService.getNotificationJson().subscribe( - notification_json => { - if ('type' in notification_json && 'message' in notification_json) { - if (notification_json['type'] == 'info') { - this.toastr.info(notification_json['message'], '', {disableTimeOut: true, closeButton: true, positionClass: 'toast-bottom-right'}); - } else if (notification_json['type'] == 'warning') { - this.toastr.warning(notification_json['message'], '', {disableTimeOut: true, closeButton: true, positionClass: 'toast-bottom-right'}); + notificationJson => { + if ('type' in notificationJson && 'message' in notificationJson) { + const override = { disableTimeOut: true, closeButton: true, positionClass: 'toast-bottom-right' }; + if (notificationJson['type'] === 'info') { + this.toastrService.info(notificationJson['message'], '', override); + } else if (notificationJson['type'] === 'warning') { + this.toastrService.warning(notificationJson['message'], '', override); } } }, - error => {} + error => { } ); } diff --git a/yangcatalog-ui/src/app/features/private/private.service.ts b/yangcatalog-ui/src/app/features/private/private.service.ts index 21b0280..f59626c 100644 --- a/yangcatalog-ui/src/app/features/private/private.service.ts +++ b/yangcatalog-ui/src/app/features/private/private.service.ts @@ -71,9 +71,9 @@ export class PrivateService extends DataService { private transformObjDataToRows(objData: any) { const result = Object.keys(objData).map(key => { - var keyData = Object.assign([], objData[key]['compilation_metadata']); + const keyData = Object.assign([], objData[key]['compilation_metadata']); ['pyang_lint', 'pyang', 'confdrc', 'yumadump', 'yanglint'].forEach(compRes => { - keyData.push(objData[key]['compilation_results'][compRes]) + keyData.push(objData[key]['compilation_results'][compRes]); }); keyData.unshift(key); return keyData;