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

show description for time when it is selected

bsatarnejad47ae7d178f88
diff --git a/frontend/src/app/shared/components/show-changes/show-changes.component.html b/frontend/src/app/shared/components/show-changes/show-changes.component.html
index 8de12dec8bb..eada31b4810 100644
--- a/frontend/src/app/shared/components/show-changes/show-changes.component.html
+++ b/frontend/src/app/shared/components/show-changes/show-changes.component.html
@@ -77,8 +77,9 @@
</spot-tooltip>
</div>
- <span slot="description"
- [textContent]="text.time_description()"></span>
+ <span slot="description"
+ *ngIf="timeZoneSelected"
+ [textContent]="text.time_description()"></span>
</spot-form-field>
<div class="spot-action-bar">
diff --git a/frontend/src/app/shared/components/show-changes/show-changes.component.ts b/frontend/src/app/shared/components/show-changes/show-changes.component.ts
index bf1322a0601..7171126f477 100644
--- a/frontend/src/app/shared/components/show-changes/show-changes.component.ts
+++ b/frontend/src/app/shared/components/show-changes/show-changes.component.ts
@@ -66,6 +66,8 @@ export class OpShowChangesComponent extends UntilDestroyedMixin implements After
public filterSelected = false;
+ public timeZoneSelected = false;
+
public daysNumber = 0;
public tooltipPosition = SpotDropAlignmentOption.BottomRight;
@@ -213,7 +215,9 @@ export class OpShowChangesComponent extends UntilDestroyedMixin implements After
}
public timeChange(value:string):void {
- if (this.configuration.isTimezoneSet()) {
+ const timeZone = this.configuration.isTimezoneSet();
+ if (timeZone) {
+ this.timeZoneSelected = true;
const dateTime= `${this.selectedDate} ${value}`;
this.selectedTimezoneFormattedTime = this.timezoneService.formattedTime(dateTime);
}