From bc4e0332474c08d1d1e476d72c2b7ab0f643a3c1 Mon Sep 17 00:00:00 2001 From: annampak Date: Fri, 22 Dec 2017 15:46:36 +0200 Subject: [PATCH] replace ng prime with material --- dmp-admin/src/app/services/rest-base.ts | 6 +++--- .../src/app/dmps/editor/dmp-editor.component.ts | 2 +- .../dynamic-field-boolean-decision.component.html | 4 ++-- .../dynamic-field-checkbox.html | 6 ++++-- .../dynamic-field-radiobox.component.html | 6 ++++-- .../src/app/form/dynamic-form.component.html | 14 +++++++------- .../src/app/form/dynamic-form.component.ts | 1 + .../src/app/services/project/project.service.ts | 4 ++++ .../src/app/shared/material/material.module.ts | 6 ++++-- 9 files changed, 30 insertions(+), 19 deletions(-) diff --git a/dmp-admin/src/app/services/rest-base.ts b/dmp-admin/src/app/services/rest-base.ts index c2082b173..039c1f877 100644 --- a/dmp-admin/src/app/services/rest-base.ts +++ b/dmp-admin/src/app/services/rest-base.ts @@ -18,10 +18,10 @@ export class RestBase { /* */ protocol: string = "http"; - hostname: string = "192.168.32.103"; + hostname: string = "192.168.32.171"; port: number = 8080; - webappname: string = "dmp-backend"; - restpath: string = "rest"; + webappname: string = ""; + restpath: string = ""; /* protocol: string = "http"; diff --git a/dmp-frontend/src/app/dmps/editor/dmp-editor.component.ts b/dmp-frontend/src/app/dmps/editor/dmp-editor.component.ts index 9a77e19ab..1139ea32f 100644 --- a/dmp-frontend/src/app/dmps/editor/dmp-editor.component.ts +++ b/dmp-frontend/src/app/dmps/editor/dmp-editor.component.ts @@ -64,7 +64,7 @@ export class DataManagementPlanEditorComponent implements AfterViewInit { let projectRequestItem: RequestItem = new RequestItem(); projectRequestItem.criteria = new ProjectCriteria(); - this.projectAutoCompleteConfiguration = new AutoCompleteConfiguration(this.projectService.get.bind(this.projectService), projectRequestItem); + this.projectAutoCompleteConfiguration = new AutoCompleteConfiguration(this.projectService.getWithExternal.bind(this.projectService), projectRequestItem); if (itemId != null) { this.isNew = false; diff --git a/dmp-frontend/src/app/form/dynamic-fields/dynamic-field-boolean-decision/dynamic-field-boolean-decision.component.html b/dmp-frontend/src/app/form/dynamic-fields/dynamic-field-boolean-decision/dynamic-field-boolean-decision.component.html index e90c46f87..fda66ed38 100644 --- a/dmp-frontend/src/app/form/dynamic-fields/dynamic-field-boolean-decision/dynamic-field-boolean-decision.component.html +++ b/dmp-frontend/src/app/form/dynamic-fields/dynamic-field-boolean-decision/dynamic-field-boolean-decision.component.html @@ -1,5 +1,5 @@
- +
- +
\ No newline at end of file diff --git a/dmp-frontend/src/app/form/dynamic-fields/dynamic-field-checkbox/dynamic-field-checkbox.html b/dmp-frontend/src/app/form/dynamic-fields/dynamic-field-checkbox/dynamic-field-checkbox.html index 3aad48483..8404fae7a 100644 --- a/dmp-frontend/src/app/form/dynamic-fields/dynamic-field-checkbox/dynamic-field-checkbox.html +++ b/dmp-frontend/src/app/form/dynamic-fields/dynamic-field-checkbox/dynamic-field-checkbox.html @@ -1,3 +1,5 @@
- -
\ No newline at end of file + {{field.data.label}} + + + \ No newline at end of file diff --git a/dmp-frontend/src/app/form/dynamic-fields/dynamic-field-radiobox/dynamic-field-radiobox.component.html b/dmp-frontend/src/app/form/dynamic-fields/dynamic-field-radiobox/dynamic-field-radiobox.component.html index db4d6428b..ccfe61b59 100644 --- a/dmp-frontend/src/app/form/dynamic-fields/dynamic-field-radiobox/dynamic-field-radiobox.component.html +++ b/dmp-frontend/src/app/form/dynamic-fields/dynamic-field-radiobox/dynamic-field-radiobox.component.html @@ -1,5 +1,7 @@
- + {{option.label}}
-
\ No newline at end of file + + + \ No newline at end of file diff --git a/dmp-frontend/src/app/form/dynamic-form.component.html b/dmp-frontend/src/app/form/dynamic-form.component.html index 7add9bb92..e578cf0b7 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.html +++ b/dmp-frontend/src/app/form/dynamic-form.component.html @@ -1,10 +1,10 @@ 
-
@@ -27,6 +27,6 @@
- - --> + + \ No newline at end of file diff --git a/dmp-frontend/src/app/form/dynamic-form.component.ts b/dmp-frontend/src/app/form/dynamic-form.component.ts index e89c89445..a262a9854 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.ts +++ b/dmp-frontend/src/app/form/dynamic-form.component.ts @@ -10,6 +10,7 @@ import { NgForm } from '@angular/forms'; import { Router, ActivatedRoute, ParamMap, Params } from '@angular/router'; import 'rxjs/add/operator/switchMap'; import { Location } from '@angular/common'; +import {MatSidenavModule} from '@angular/material/sidenav'; declare function simple_notifier(type: string, title: string, message: string): any; diff --git a/dmp-frontend/src/app/services/project/project.service.ts b/dmp-frontend/src/app/services/project/project.service.ts index e2fd4fe0b..b2b053c26 100644 --- a/dmp-frontend/src/app/services/project/project.service.ts +++ b/dmp-frontend/src/app/services/project/project.service.ts @@ -36,6 +36,10 @@ export class ProjectService { return this.http.post(this.actionUrl + 'get', requestItem, { headers: this.headers }); } + getWithExternal(requestItem: RequestItem): Observable { + return this.http.post(this.actionUrl + 'getWithExternal', requestItem, { headers: this.headers }); + } + getSingle(id: string): Observable { return this.http.get(this.actionUrl + 'getSingle/' + id, { headers: this.headers }); } diff --git a/dmp-frontend/src/app/shared/material/material.module.ts b/dmp-frontend/src/app/shared/material/material.module.ts index 843b348ee..d8e9dfdea 100644 --- a/dmp-frontend/src/app/shared/material/material.module.ts +++ b/dmp-frontend/src/app/shared/material/material.module.ts @@ -24,7 +24,8 @@ import { MatTooltipModule, MatCheckboxModule, MatTabsModule, - MatStepperModule + MatStepperModule, + MatRadioModule } from '@angular/material'; import { CdkTableModule } from '@angular/cdk/table'; import { SnackBarNotificationComponent } from '../components/notificaiton/snack-bar-notification.component'; @@ -62,7 +63,8 @@ import { CovalentLayoutModule, CovalentChipsModule, CovalentDialogsModule } from CovalentLayoutModule, CovalentChipsModule, CovalentDialogsModule, - MatStepperModule + MatStepperModule, + MatRadioModule ], providers: [