diff --git a/dmp-frontend/src/app/app-routing.module.ts b/dmp-frontend/src/app/app-routing.module.ts
index d761efa26..4015e7222 100644
--- a/dmp-frontend/src/app/app-routing.module.ts
+++ b/dmp-frontend/src/app/app-routing.module.ts
@@ -21,7 +21,7 @@ const appRoutes: Routes = [
{ path: 'projects', component: ProjectsComponent},
{ path: 'project', component: ProjectDetailedComponent},
{ path: 'dmps', component: DmpComponent},
- { path: 'dmp', component: DmpDetailedComponent },
+ { path: 'dmp', component: DmpDetailedComponent},
{ path: 'welcome', component: HomepageComponent},
{ path: '', redirectTo: '/login', pathMatch: 'full' },
{ path: '**', component: PageNotFoundComponent },
diff --git a/dmp-frontend/src/app/app.component.html b/dmp-frontend/src/app/app.component.html
index 31fb54d23..cd2055e64 100644
--- a/dmp-frontend/src/app/app.component.html
+++ b/dmp-frontend/src/app/app.component.html
@@ -85,8 +85,6 @@
-
-
\ No newline at end of file
diff --git a/dmp-frontend/src/app/dmps/dmp.component.css b/dmp-frontend/src/app/dmps/dmp.component.css
index f158a1bec..56c7ce68f 100644
--- a/dmp-frontend/src/app/dmps/dmp.component.css
+++ b/dmp-frontend/src/app/dmps/dmp.component.css
@@ -66,4 +66,55 @@ tr.hover:hover > * {
.url-like{
color: #0645AD;
cursor: pointer;
-}
\ No newline at end of file
+}
+
+
+
+
+
+
+/* START - FOR DETAILS MODALS */
+
+ .modal.modal-fullscreen .modal-dialog,
+ .modal.modal-fullscreen .modal-content {
+ position: absolute;
+ left: 1%;
+ right: 1%;
+ top: 1%;
+ bottom: 1%;
+ }
+ .modal.modal-fullscreen .modal-dialog {
+ margin: 0;
+ width: 98%;
+ animation-duration:0.5s;
+ }
+ .modal.modal-fullscreen .modal-content {
+ border: none;
+ -moz-border-radius: 0;
+ border-radius: 0;
+ -webkit-box-shadow: inherit;
+ -moz-box-shadow: inherit;
+ -o-box-shadow: inherit;
+ box-shadow: inherit;
+ /* change bg color below */
+ /* background:#1abc9c; */
+ }
+ .modal.modal-fullscreen.force-fullscreen {
+ /* Remove the padding inside the body */
+ }
+ .modal.modal-fullscreen.force-fullscreen .modal-body {
+ padding: 0;
+ }
+ .modal.modal-fullscreen.force-fullscreen .modal-header,
+ .modal.modal-fullscreen.force-fullscreen .modal-footer {
+ left: 0;
+ position: absolute;
+ right: 0;
+ }
+ .modal.modal-fullscreen.force-fullscreen .modal-header {
+ top: 0;
+ }
+ .modal.modal-fullscreen.force-fullscreen .modal-footer {
+ bottom: 0;
+ }
+ /* END - FOR DETAILS MODALS */
\ No newline at end of file
diff --git a/dmp-frontend/src/app/dmps/dmp.component.ts b/dmp-frontend/src/app/dmps/dmp.component.ts
index c26303cb6..7cc3155e6 100644
--- a/dmp-frontend/src/app/dmps/dmp.component.ts
+++ b/dmp-frontend/src/app/dmps/dmp.component.ts
@@ -265,7 +265,8 @@ export class DmpComponent implements OnInit{
viewDetailedDMP(dmp){
console.log(dmp)
- this.router.navigate(['/dmp'], { queryParams: { "dmpid":dmp.id, "label":dmp.label }});
+ this.router.navigate([{ outlets: { dmpDetails: [ 'dmp' ] }}]);
+ //this.router.navigate(['/dmp'], { queryParams: { "dmpid":dmp.id, "label":dmp.label }});
}
viewDetailedProject(dmp){
diff --git a/dmp-frontend/src/app/dmps/dmps.html b/dmp-frontend/src/app/dmps/dmps.html
index 6ffb2966c..777d9d6d6 100644
--- a/dmp-frontend/src/app/dmps/dmps.html
+++ b/dmp-frontend/src/app/dmps/dmps.html
@@ -1,232 +1,269 @@
-
-
-
-
-
-
-
+
-
-
-
-
-
The submitted status is available only when all the DMP's datasets are "Submitted" or "Cancel"
-
-
-
+
+
+
+
+
The submitted status is available only when all the DMP's datasets are "Submitted" or "Cancel"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dmp-frontend/src/app/login/googgle-sign-in/googgle-sign-in.component.spec.ts b/dmp-frontend/src/app/login/googgle-sign-in/googgle-sign-in.component.spec.ts
deleted file mode 100644
index ee11f64bd..000000000
--- a/dmp-frontend/src/app/login/googgle-sign-in/googgle-sign-in.component.spec.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { GooggleSignInComponent } from './googgle-sign-in.component';
-
-describe('GooggleSignInComponent', () => {
- let component: GooggleSignInComponent;
- let fixture: ComponentFixture
;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ GooggleSignInComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(GooggleSignInComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should be created', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/dmp-frontend/src/app/login/googgle-sign-in/googgle-sign-in.component.ts b/dmp-frontend/src/app/login/googgle-sign-in/googgle-sign-in.component.ts
index 1eeaa0cde..718a431e2 100644
--- a/dmp-frontend/src/app/login/googgle-sign-in/googgle-sign-in.component.ts
+++ b/dmp-frontend/src/app/login/googgle-sign-in/googgle-sign-in.component.ts
@@ -23,7 +23,7 @@ export class GooggleSignInComponent implements OnInit, AfterViewInit, Injectable
}
ngOnInit() {
- //this.googleInit();
+
}
ngAfterViewInit() {
@@ -47,7 +47,8 @@ export class GooggleSignInComponent implements OnInit, AfterViewInit, Injectable
public auth2: any;
public googleInit() {
-
+
+
gapi.load('auth2', () => {
this.auth2 = gapi.auth2.init({
client_id: this.clientId,
@@ -56,15 +57,15 @@ export class GooggleSignInComponent implements OnInit, AfterViewInit, Injectable
});
//RE-Render the button (due to known issues of google-button with angular's lifecycle)
- gapi.signin2.render('googleBtn', {
- 'onsuccess': console.log("SUCCESSFULLY RERENDERED THE BUTTON"),
- 'onfailure': console.log("FAILED TO RERENDER THE BUTTON")
- });
+ gapi.signin2.render('googleBtn');
var buttonElement = this.element.nativeElement.querySelector('#googleBtn');
this.attachSignin(buttonElement);
+
});
+
+
}
public attachSignin(element) {
diff --git a/dmp-frontend/src/app/login/main-sign-in/main-sign-in.component.spec.ts b/dmp-frontend/src/app/login/main-sign-in/main-sign-in.component.spec.ts
deleted file mode 100644
index cd7c7a960..000000000
--- a/dmp-frontend/src/app/login/main-sign-in/main-sign-in.component.spec.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { MainSignInComponent } from './main-sign-in.component';
-
-describe('MainSignInComponent', () => {
- let component: MainSignInComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ MainSignInComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(MainSignInComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should be created', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/dmp-frontend/src/app/viewers/dmp-detailed/dmp-detailed.component.ts b/dmp-frontend/src/app/viewers/dmp-detailed/dmp-detailed.component.ts
index dec9c4e81..26d233632 100644
--- a/dmp-frontend/src/app/viewers/dmp-detailed/dmp-detailed.component.ts
+++ b/dmp-frontend/src/app/viewers/dmp-detailed/dmp-detailed.component.ts
@@ -18,6 +18,8 @@ export class DmpDetailedComponent implements OnInit {
ngOnInit() {
+ console.log("LOADING DmpDetailedComponent")
+
let sub = this.route.queryParams.subscribe(params => {
let dmpid = params.dmpid;
@@ -25,7 +27,6 @@ export class DmpDetailedComponent implements OnInit {
this.serverService.getDmp(dmpid, getParams).subscribe(
response => {
this.dmp = response;
- debugger;
},
error => {
console.log("Could not load dmp");