diff --git a/src/app/pages/community-routing.module.ts b/src/app/pages/community-routing.module.ts
index db7d597..e4a67fc 100644
--- a/src/app/pages/community-routing.module.ts
+++ b/src/app/pages/community-routing.module.ts
@@ -31,6 +31,7 @@ import {ConnectRIGuard} from "../openaireLibrary/connect/communityGuard/connectR
{
path: 'customize-layout',
loadChildren: () => import('./customization/customization.module').then(m => m.CustomizationModule),
+ data: {hasSidebar: true, hasHeader: false}
},
{
path: 'user-info',
diff --git a/src/app/pages/customization/background-upload.component.ts b/src/app/pages/customization/background-upload.component.ts
index a17bb3e..d2daddd 100644
--- a/src/app/pages/customization/background-upload.component.ts
+++ b/src/app/pages/customization/background-upload.component.ts
@@ -9,61 +9,37 @@ declare var UIkit;
selector: 'background-upload',
template: `
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Image position
-
-
-
-
-
- Top
- Center
- Bottom
-
-
-
+ upload image
- `
+
+
+
+ `,
+ styles:[`
+ .upload{
+ border: 1px dotted grey;
+ }
+ `]
})
export class BackgroundUploadComponent implements OnInit {
@@ -163,4 +139,10 @@ export class BackgroundUploadComponent implements OnInit {
}));
}
}
+
+ getUrl()
+ {
+ return "url('" +(this.background.imageFile.indexOf('data:')==-1?(this.properties.utilsService +
+ '/download/'+this.background.imageFile):this.background.imageFile) +"')";
+ }
}
diff --git a/src/app/pages/customization/border.component.ts b/src/app/pages/customization/border.component.ts
index 2d808bf..548728b 100644
--- a/src/app/pages/customization/border.component.ts
+++ b/src/app/pages/customization/border.component.ts
@@ -4,37 +4,37 @@ import {Component, EventEmitter, Input, OnInit, Output,} from '@angular/core';
@Component({
selector: 'border',
template: `
-
+
-
-
Border width (px)
-
+
-
-
Border style
-
-
-
-
- solid
- dotted
- dashed
-
-
-
+
+
`
@@ -44,14 +44,14 @@ export class BorderComponent implements OnInit {
@Input() radius: number = 0;
@Input() width: number = 0;
@Input() style = 'solid';
- // @Input() addMargin: boolean = false;
+ @Input() radiusPublished: number = 0;
+ @Input() widthPublished: number = 0;
+ @Input() stylePublished = 'solid';
@Output() borderChange = new EventEmitter();
constructor() {
}
-
-
ngOnInit() {
}
@@ -59,6 +59,4 @@ export class BorderComponent implements OnInit {
console.log(this.radius);
this.borderChange.emit({radius: this.radius, width: this.width, style: this.style});
}
-
-
}
diff --git a/src/app/pages/customization/customization.component.html b/src/app/pages/customization/customization.component.html
index c33c6fc..dfa78e8 100644
--- a/src/app/pages/customization/customization.component.html
+++ b/src/app/pages/customization/customization.component.html
@@ -1,386 +1,307 @@
-
-