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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
show timezone on drop modal
bsatarnejad7a1248c7bcca
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.htmlindex df349189967..63159d0a424 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@@ -32,7 +32,7 @@<div slot="input"><select class="op-show-changes-modal--filter"- (change)="valueSelected($event.target.value)"+ (change)="filterChange($event.target.value)"><option*ngFor="let availableValue of showChangesAvailableValues"@@ -53,6 +53,7 @@<inputslot="input"+ (change)="timeChange($event.target.value)"type="time"class="op-show-changes-modal--time-input"/>@@ -60,7 +61,7 @@slot="input"class="op-show-changes-modal--time-help spot-body-small">- <span class="">CERT</span>+ <span class="">{{text.timeZone}}</span><spot-tooltipclass="op-show-changes-modal--time-tooltip"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.tsindex 13e3fc1cd4d..4e08cc48c1f 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@@ -42,6 +42,8 @@ import { WeekdayService } from 'core-app/core/days/weekday.service';import { DayResourceService } from 'core-app/core/state/days/day.service';import { IDay } from 'core-app/core/state/days/day.model';import { take } from 'rxjs/operators';+import { TimezoneService } from 'core-app/core/datetime/timezone.service';+import { ConfigurationService } from 'core-app/core/config/configuration.service';@Component({selector: 'op-show-changes',@@ -60,6 +62,7 @@ export class OpShowChangesComponent extends UntilDestroyedMixin implements Aftershow_changes_since: this.I18n.t('js.show_changes.show_changes_since'),time: this.I18n.t('js.show_changes.time'),help_description: this.I18n.t('js.show_changes.help_description'),+ timeZone: this.configuration.isTimezoneSet() ? this.configuration.timezone() : 'local',};public opened = false;@@ -70,6 +73,8 @@ export class OpShowChangesComponent extends UntilDestroyedMixin implements Afterpublic filterSelected = false;+ public selectedDate = '';+public tooltipPosition = SpotDropAlignmentOption.BottomRight;public showChangesAvailableValues = [@@ -111,6 +116,8 @@ export class OpShowChangesComponent extends UntilDestroyedMixin implements Afterreadonly halResourceService:HalResourceService,private weekdaysService:WeekdayService,private daysService:DayResourceService,+ readonly timezoneService:TimezoneService,+ private configuration:ConfigurationService,) {super();}@@ -140,6 +147,7 @@ export class OpShowChangesComponent extends UntilDestroyedMixin implements Afterconst today = new Date();today.setDate(today.getDate() - 1);+ this.selectedDate = moment(today).format('YYYY-MM-DD');return moment(today).format('ddd, YYYY-MM-DD');}@@ -147,6 +155,7 @@ export class OpShowChangesComponent extends UntilDestroyedMixin implements Afterconst today = new Date();today.setMonth(today.getMonth() - 1);+ this.selectedDate = moment(today).format('YYYY-MM-DD');return moment(today).format('ddd, YYYY-MM-DD');}@@ -154,6 +163,7 @@ export class OpShowChangesComponent extends UntilDestroyedMixin implements Afterconst today = new Date();today.setDate(today.getDate() - 7);+ this.selectedDate = moment(today).format('YYYY-MM-DD');return moment(today).format('ddd, YYYY-MM-DD');}@@ -182,6 +192,7 @@ export class OpShowChangesComponent extends UntilDestroyedMixin implements Afterwhile (lastWorkingDay === '') {if (this.isNonWorkingDay(yesterday) || this.weekdaysService.isNonWorkingDay(yesterday)) {lastWorkingDay = moment(yesterday).format('ddd, YYYY-MM-DD');+ this.selectedDate = moment(yesterday).format('YYYY-MM-DD');break;} else {yesterday.setDate(yesterday.getDate() - 1);@@ -192,7 +203,11 @@ export class OpShowChangesComponent extends UntilDestroyedMixin implements Afterreturn lastWorkingDay;}- public valueSelected(value:string):void {+ public timeChange(value:any):void {++ }++ public filterChange(value:string):void {if (value !== '0') {this.filterSelected = true;switch (value) {