From 63d509d0cbc13bd23afee608b40538113b4fcbc7 Mon Sep 17 00:00:00 2001 From: annampak Date: Wed, 1 Nov 2017 14:01:14 +0200 Subject: [PATCH] minor fixes --- .../src/app/datasets/dataset.component.ts | 9 ++-- dmp-frontend/src/app/datasets/dataset.html | 45 +++++++++++-------- dmp-frontend/src/app/dmps/dmp.component.ts | 2 +- dmp-frontend/src/app/dmps/dmps.html | 2 + .../src/app/projects/projects.component.ts | 2 +- dmp-frontend/src/app/services/interceptor.ts | 3 +- 6 files changed, 38 insertions(+), 25 deletions(-) diff --git a/dmp-frontend/src/app/datasets/dataset.component.ts b/dmp-frontend/src/app/datasets/dataset.component.ts index adafd005f..de4630a8b 100644 --- a/dmp-frontend/src/app/datasets/dataset.component.ts +++ b/dmp-frontend/src/app/datasets/dataset.component.ts @@ -32,7 +32,7 @@ export class DatasetsComponent implements OnInit { //required by the table public filterQuery = ""; public rowsOnPage = 10; - //public sortBy = "email"; + public sortBy = "label"; public sortOrder = "asc"; //visibility rules for containers @@ -50,10 +50,10 @@ export class DatasetsComponent implements OnInit { @Input() datasetCount = 0; @Input() dmpIdforDatasets: string; @Input() dmpLabelforDatasets: string; + @Input() statusDropDown: DropdownField; dataset: any; saveAndDescribe:boolean; - - //@ViewChild(DataTable) projectsTable; + dataSetValue: boolean @Input() @@ -86,6 +86,9 @@ export class DatasetsComponent implements OnInit { this.datasetProfileDropDown = new DropdownField(); this.datasetProfileDropDown.options = []; this.saveAndDescribe = false; + this.statusDropDown = new DropdownField(); + this.statusDropDown.options =[]; + this.statusDropDown.options= [{key:'0', value:"active"},{key:'1', value:"inactive"}] } diff --git a/dmp-frontend/src/app/datasets/dataset.html b/dmp-frontend/src/app/datasets/dataset.html index fab487b42..f90a748bd 100644 --- a/dmp-frontend/src/app/datasets/dataset.html +++ b/dmp-frontend/src/app/datasets/dataset.html @@ -2,13 +2,19 @@ - +
+ - + @@ -38,14 +44,14 @@ - + - + @@ -56,13 +62,13 @@ - + @@ -82,29 +88,30 @@
- +
- +
- +
- - diff --git a/dmp-frontend/src/app/dmps/dmp.component.ts b/dmp-frontend/src/app/dmps/dmp.component.ts index 341ab8db9..2b1276448 100644 --- a/dmp-frontend/src/app/dmps/dmp.component.ts +++ b/dmp-frontend/src/app/dmps/dmp.component.ts @@ -37,7 +37,7 @@ export class DmpComponent implements OnInit{ //required by the table public filterQuery = ""; public rowsOnPage = 10; - //public sortBy = "email"; + public sortBy = "label"; public sortOrder = "asc"; //visibility rules for containers diff --git a/dmp-frontend/src/app/dmps/dmps.html b/dmp-frontend/src/app/dmps/dmps.html index c5910ed90..eda2bb270 100644 --- a/dmp-frontend/src/app/dmps/dmps.html +++ b/dmp-frontend/src/app/dmps/dmps.html @@ -7,6 +7,8 @@ +
- - + + + + Label + Status - Uri Actions
No elements
{{dataset.id}} {{dataset?.label}}
- +
+ diff --git a/dmp-frontend/src/app/projects/projects.component.ts b/dmp-frontend/src/app/projects/projects.component.ts index 0d0e3c322..2bd40a3e1 100644 --- a/dmp-frontend/src/app/projects/projects.component.ts +++ b/dmp-frontend/src/app/projects/projects.component.ts @@ -37,7 +37,7 @@ export class ProjectsComponent implements OnInit{ //required by the table public filterQuery = ""; public rowsOnPage = 10; - //public sortBy = "email"; + public sortBy = "label"; public sortOrder = "asc"; //visibility rules for containers diff --git a/dmp-frontend/src/app/services/interceptor.ts b/dmp-frontend/src/app/services/interceptor.ts index 0cffec71a..3ccc2d28e 100644 --- a/dmp-frontend/src/app/services/interceptor.ts +++ b/dmp-frontend/src/app/services/interceptor.ts @@ -25,7 +25,8 @@ export class GlobalInterceptor implements HttpInterceptor { var auth2 = gapi.auth2.getAuthInstance();     auth2.signOut().then(function () {       console.log('User signed out.'); - localStorage.removeItem('currentUser'); + localStorage.removeItem('currentUser'); + this.router.navigate(['/login-page']);     }); this.tokenService.setToken(null); //EDW VALE TO KWDIKA GIA TO LOGOUT KAI SXOLIASE TON OPOU ALLOU TON EXEIS