Datepickers using max date with business date

This commit is contained in:
Jose Alberto Hernandez
2022-07-28 17:06:39 +02:00
committed by Arnold Gálovics
parent 753791a078
commit a4b266080b
132 changed files with 268 additions and 42 deletions
@@ -1,5 +1,6 @@
/** Angular Imports */
import { Component, OnInit } from '@angular/core';
import { SettingsService } from 'app/settings/settings.service';
/**
* Edit self service user component.
@@ -24,9 +25,13 @@ export class EditUserComponent implements OnInit {
/** Maximum date of birth of user allowed. */
maxDate = new Date();
constructor() { }
/**
* @param {SettingsService} settingsService Settings Service
*/
constructor(private settingsService: SettingsService) { }
ngOnInit() {
}
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
}
}