File tree 2 files changed +2
-18
lines changed
desktop/src/app/components/docedit/core/forms/date
2 files changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -48,28 +48,12 @@ export class DateComponent implements OnChanges {
48
48
}
49
49
50
50
51
- public setRangeViaSelect ( value : 'single' | 'range' ) {
51
+ public selectRange ( value : 'single' | 'range' ) {
52
52
53
53
this . setRange ( value === 'range' ) ;
54
54
}
55
55
56
56
57
- public toggleRange ( ) {
58
-
59
- this . setRange ( ! this . rangeMode ) ;
60
- }
61
-
62
-
63
- public getRangeButtonTooltip ( ) : string {
64
-
65
- if ( ! this . isOptionalRange ( ) ) return undefined ;
66
-
67
- return this . rangeMode
68
- ? $localize `:@@docedit.forms.date.switchToSingle:Auf Einzeldatum umstellen`
69
- : $localize `:@@docedit.forms.date.switchToRange:Auf Datumsbereich umstellen` ;
70
- }
71
-
72
-
73
57
private update ( value : string , propertyName : 'value' | 'endValue' ) {
74
58
75
59
if ( value ) {
Original file line number Diff line number Diff line change 1
1
< select *ngIf ="isOptionalRange() " class ="form-control "
2
- (change) ="setRangeViaSelect ($event.target.value) ">
2
+ (change) ="selectRange ($event.target.value) ">
3
3
< option i18n ="@@docedit.forms.date.select.single " value ="single "
4
4
[selected] ="!rangeMode "> Einzeldatum</ option >
5
5
< option i18n ="@@docedit.forms.date.select.range " value ="range "
You can’t perform that action at this time.
0 commit comments