2021-05-19 13:40:29 +02:00
|
|
|
import {Component, Input, OnInit} from '@angular/core';
|
|
|
|
import {properties} from '../../../environments/environment';
|
|
|
|
|
|
|
|
declare var UIkit;
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'background',
|
|
|
|
template: `
|
|
|
|
<color [color]="background.color"
|
|
|
|
[label]="label" [light]="light"
|
|
|
|
(colorChange)=
|
2022-08-11 15:06:50 +02:00
|
|
|
" background.color = $event;" [description]="description"></color>
|
|
|
|
|
2021-05-19 13:40:29 +02:00
|
|
|
`
|
|
|
|
})
|
|
|
|
|
|
|
|
export class BackgroundComponent implements OnInit {
|
|
|
|
@Input() label:string = "";
|
2022-08-11 15:06:50 +02:00
|
|
|
@Input() description:string = null;
|
2021-05-19 13:40:29 +02:00
|
|
|
@Input() background;
|
|
|
|
@Input() oldBackground;
|
|
|
|
@Input() light:boolean;
|
|
|
|
@Input() communityId:string = "";
|
|
|
|
|
|
|
|
public file: File;
|
|
|
|
properties;
|
|
|
|
|
2021-11-26 13:45:12 +01:00
|
|
|
constructor() {
|
2021-05-19 13:40:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
this.properties = properties;
|
|
|
|
}
|
|
|
|
}
|