From: Barath Kumar R Date: Tue, 7 Jul 2020 10:42:32 +0000 (+0530) Subject: NG-UI Added support for the quotos X-Git-Tag: v8.0.0rc3~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F51%2F9351%2F3;p=osm%2FNG-UI.git NG-UI Added support for the quotos * Add the quotos limition to be defined from the UI. * Added the checkbox to activate the quote limitation. Change-Id: I3795d00a3615018743449538e232b3bb31591d82 Signed-off-by: Barath Kumar R --- diff --git a/package.json b/package.json index 264dc07..4858905 100644 --- a/package.json +++ b/package.json @@ -57,13 +57,12 @@ "rxjs": "^6.5.4", "rxjs-compat": "^6.5.5", "stream": "0.0.2", - "text-encoding": "^0.7.0", "tslib": "^1.11.1", "web-animations-js": "^2.3.2", "zone.js": "~0.10.3" }, "devDependencies": { - "@angular-devkit/build-angular": "~0.901.0", + "@angular-devkit/build-angular": "^0.901.8", "@angular/cli": "~9.1.0", "@angular/compiler-cli": "~9.1.0", "@angular/language-service": "~9.1.0", diff --git a/src/app/projects/ProjectsComponent.ts b/src/app/projects/ProjectsComponent.ts index 7524994..fe55271 100644 --- a/src/app/projects/ProjectsComponent.ts +++ b/src/app/projects/ProjectsComponent.ts @@ -32,6 +32,7 @@ import { ProjectsActionComponent } from 'ProjectsAction'; import { RestService } from 'RestService'; import { Subscription } from 'rxjs'; import { SharedService } from 'SharedService'; +import { isNullOrUndefined } from 'util'; /** * Creating component @@ -169,10 +170,12 @@ export class ProjectsComponent implements OnInit, OnDestroy { public generateProjectData(projectData: ProjectDetails): ProjectData { return { projectName: projectData.name, - modificationDate: this.sharedService.convertEpochTime(projectData._admin.modified), - creationDate: this.sharedService.convertEpochTime(projectData._admin.created), + modificationDate: this.sharedService.convertEpochTime(!isNullOrUndefined(projectData._admin) + ? projectData._admin.modified : null), + creationDate: this.sharedService.convertEpochTime(!isNullOrUndefined(projectData._admin) ? projectData._admin.created : null), id: projectData._id, - project: projectData._id + project: projectData._id, + quotas: !isNullOrUndefined(projectData.quotas) ? projectData.quotas : null }; } diff --git a/src/app/projects/project-create-update/ProjectCreateUpdateComponent.html b/src/app/projects/project-create-update/ProjectCreateUpdateComponent.html index c327119..8afb727 100644 --- a/src/app/projects/project-create-update/ProjectCreateUpdateComponent.html +++ b/src/app/projects/project-create-update/ProjectCreateUpdateComponent.html @@ -17,30 +17,51 @@ Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.i -->
-