2019-08-11 16:21:49 +02:00
|
|
|
import {Component, OnInit} from '@angular/core';
|
2019-08-10 16:57:36 +02:00
|
|
|
import {BaseComponent} from '../base-page/base.component';
|
2019-12-03 17:20:57 +01:00
|
|
|
import {ConfigService} from '../../services/config.service';
|
2020-01-16 10:45:56 +01:00
|
|
|
import {environment} from "../../../environments/environment";
|
2019-08-10 16:57:36 +02:00
|
|
|
|
|
|
|
@Component({
|
2019-08-11 16:21:49 +02:00
|
|
|
selector: 'framadate-visibility',
|
|
|
|
templateUrl: './visibility.component.html',
|
|
|
|
styleUrls: ['./visibility.component.scss']
|
2019-08-10 16:57:36 +02:00
|
|
|
})
|
|
|
|
export class VisibilityComponent extends BaseComponent implements OnInit {
|
2019-11-23 14:58:44 +01:00
|
|
|
showCustomPassword = false;
|
2020-01-16 10:45:56 +01:00
|
|
|
baseUrl = environment.baseApiHref;
|
2019-08-10 16:57:36 +02:00
|
|
|
|
2019-08-11 16:21:49 +02:00
|
|
|
constructor(public config: ConfigService) {
|
|
|
|
super(config);
|
|
|
|
}
|
2019-08-10 16:57:36 +02:00
|
|
|
|
2019-08-11 16:21:49 +02:00
|
|
|
ngOnInit() {
|
2020-01-16 11:33:13 +01:00
|
|
|
this.config.customUrl = this.config.makeSlug();
|
|
|
|
this.config.expirationDate = (this.config.addDaysToDate(this.config.expiracyDateDefaultInDays, new Date())).toISOString().substring(0, 10);
|
2019-11-23 14:58:44 +01:00
|
|
|
}
|
|
|
|
|
2019-11-23 15:35:27 +01:00
|
|
|
|
2019-08-10 16:57:36 +02:00
|
|
|
}
|