Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Drive-by fix for milestone datepicker

Oliver Günther71e37f204e0a
diff --git a/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html b/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html
index e1625059ac0..b75cad76c4a 100644
--- a/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html
+++ b/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html
@@ -44,7 +44,7 @@
<button
slot="action"
type="button"
- class="spot-link op-datepicker-modal--today-link"
+ class="spot-link"
[ngClass]="{ 'op-datepicker-modal--hidden-link': !showTodayLink() }"
(click)="setToday('start')"
[textContent]="text.today">
@@ -70,7 +70,7 @@
<button
slot="action"
type="button"
- class="spot-link op-datepicker-modal--today-link"
+ class="spot-link"
[ngClass]="{ 'op-datepicker-modal--hidden-link': !showTodayLink() }"
(click)="setToday('end')"
[textContent]="text.today">
diff --git a/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.html b/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.html
index b53114e8fe6..ba44303af6a 100644
--- a/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.html
+++ b/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.html
@@ -23,32 +23,27 @@
</div>
<div class="op-datepicker-modal--dates-container">
- <div class="form--field op-datepicker-modal--date-form">
- <label class="form--label"
- [textContent]="text.date">
- </label>
- <div class="form--field-container">
- <div class="form--text-field-container op-datepicker-modal--date-container">
- <spot-text-field
- name="date"
- class="op-datepicker-modal--date-field"
- [ngClass]="{ 'op-datepicker-modal--date-field_current': this.dateModalScheduling.isSchedulable }"
- [(ngModel)]="date"
- (ngModelChange)="dateChangedManually$.next()"
- [showClearButton]="true"
- ></spot-text-field>
- </div>
- </div>
- <div class="form--field-extra-actions">
- <button
- type="button"
- class="spot-link"
- [ngClass]="{ 'op-datepicker-modal--hidden-link': !dateModalScheduling.isSchedulable }"
- (click)="setToday()"
- [textContent]="text.today">
- </button>
- </div>
- </div>
+ <spot-form-field
+ [label]="text.date"
+ >
+ <spot-text-field
+ slot="input"
+ name="date"
+ class="op-datepicker-modal--date-field"
+ [ngClass]="{ 'op-datepicker-modal--date-field_current': this.dateModalScheduling.isSchedulable }"
+ [(ngModel)]="date"
+ (ngModelChange)="dateChangedManually$.next()"
+ [showClearButton]="true"
+ ></spot-text-field>
+ <button
+ slot="action"
+ type="button"
+ class="spot-link"
+ [ngClass]="{ 'op-datepicker-modal--hidden-link': !dateModalScheduling.isSchedulable }"
+ (click)="setToday()"
+ [textContent]="text.today">
+ </button>
+ </spot-form-field>
</div>
<input id="flatpickr-input"