Skip to content

Commit eef67b8

Browse files
committed
Clean up DateComponent
1 parent 09546ba commit eef67b8

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

desktop/src/app/components/docedit/core/forms/date/date.component.ts

+1-17
Original file line numberDiff line numberDiff line change
@@ -48,28 +48,12 @@ export class DateComponent implements OnChanges {
4848
}
4949

5050

51-
public setRangeViaSelect(value: 'single'|'range') {
51+
public selectRange(value: 'single'|'range') {
5252

5353
this.setRange(value === 'range');
5454
}
5555

5656

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-
7357
private update(value: string, propertyName: 'value'|'endValue') {
7458

7559
if (value) {

desktop/src/app/components/docedit/core/forms/date/date.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<select *ngIf="isOptionalRange()" class="form-control"
2-
(change)="setRangeViaSelect($event.target.value)">
2+
(change)="selectRange($event.target.value)">
33
<option i18n="@@docedit.forms.date.select.single" value="single"
44
[selected]="!rangeMode">Einzeldatum</option>
55
<option i18n="@@docedit.forms.date.select.range" value="range"

0 commit comments

Comments
 (0)