mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
[HIMA-182] Applierd QA fixes for HIMA-182
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
<div class="selected" (click)="toggle()">
|
||||
<span>{{ selected | date: 'dd.MM.yy' }}</span>
|
||||
<lib-icon class="icon" [rotateBackwards]="expanded" transition="all 0.2s linear" width="17px" name="Arrow_Down_2_branch"></lib-icon>
|
||||
<lib-icon
|
||||
*ngIf="!disabled"
|
||||
class="icon"
|
||||
[rotateBackwards]="expanded"
|
||||
transition="all 0.2s linear"
|
||||
width="17px"
|
||||
name="Arrow_Down_2_branch"
|
||||
></lib-icon>
|
||||
</div>
|
||||
|
||||
<div class="calendar" *ngIf="expanded">
|
||||
|
||||
@@ -9,6 +9,7 @@ import { ViewRef_ } from '@angular/core/src/view';
|
||||
})
|
||||
export class DatePickerComponent implements OnInit {
|
||||
@Input() selected: Date;
|
||||
@Input() disabled = false;
|
||||
expanded = false;
|
||||
today = new Date();
|
||||
baseDate: Date;
|
||||
@@ -136,6 +137,9 @@ export class DatePickerComponent implements OnInit {
|
||||
}
|
||||
|
||||
toggle() {
|
||||
if (this.disabled) {
|
||||
return;
|
||||
}
|
||||
this.expanded = !this.expanded;
|
||||
if (this.expanded) {
|
||||
this.initialize();
|
||||
|
||||
Reference in New Issue
Block a user