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

use baseline component in drop-modal component

bsatarnejadd80f18a9d512
diff --git a/frontend/src/app/shared/components/baseline-modal/baseline-modal.component.html b/frontend/src/app/shared/components/baseline-modal/baseline-modal.component.html
index d59554d1675..6f42d3f6d12 100644
--- a/frontend/src/app/shared/components/baseline-modal/baseline-modal.component.html
+++ b/frontend/src/app/shared/components/baseline-modal/baseline-modal.component.html
@@ -23,81 +23,6 @@
<div class="op-baseline-modal--header">
<span class="op-baseline-modal--description spot-body-small">{{ text.header_description }}</span>
</div>
- <form
- (submit)="onSubmit($event)"
- class="spot-container op-baseline-modal--body"
- >
- <spot-form-field
- [label]="text.show_changes_since">
-
- <div slot="input">
- <select class="op-baseline-modal--filter"
- (change)="filterChange($event.target.value)"
- >
- <option
- *ngFor="let availableValue of baselineModalAvailableValues"
- [value]="availableValue.value">
- {{availableValue.title}}
- </option>
- </select>
-
- </div>
- <span slot="description"> {{ dropDownDescription }} </span>
- </spot-form-field>
-
- <spot-form-field
- [label]="text.time"
- *ngIf="filterSelected"
- class="op-baseline-modal--time">
-
- <input
- slot="input"
- (change)="timeChange($event.target.value)"
- type="time"
- class="op-baseline-modal--time-input"/>
-
- <div
- slot="input"
- class="op-baseline-modal--time-help spot-body-small"
- >
- <span class="">{{text.timeZone}}</span>
-
- <spot-tooltip
- class="op-baseline-modal--time-tooltip"
- [alignment]="tooltipPosition"
- [disabled]="false"
- [light]="true">
-
- <span class="spot-icon spot-icon_help1" slot="trigger"></span>
- <span slot="body" class="spot-body-small op-baseline-modal--time-tooltip-body">{{ text.help_description }}</span>
-
- </spot-tooltip>
- </div>
-
- <span slot="description"
- *ngIf="timeZoneSelected"
- [textContent]="text.time_description()"></span>
- </spot-form-field>
-
- <div class="spot-action-bar">
-
- <div class="spot-action-bar--right">
- <button
- class="button spot-action-bar--action"
- type="button"
- (click)="clearSelection()"
- >
- {{ text.clear }}
- </button>
- <button
- [disabled] ="!filterSelected"
- class="button -highlight spot-action-bar--action"
- >
- {{ text.apply }}
- </button>
- </div>
- </div>
- </form>
</ng-container>
-
+ <op-baseline slot="body"></op-baseline>
</spot-drop-modal>
diff --git a/frontend/src/app/shared/components/baseline/baseline.component.ts b/frontend/src/app/shared/components/baseline/baseline.component.ts
index a08e40ad303..2f3f42d7b4b 100644
--- a/frontend/src/app/shared/components/baseline/baseline.component.ts
+++ b/frontend/src/app/shared/components/baseline/baseline.component.ts
@@ -46,7 +46,7 @@ import { TimezoneService } from 'core-app/core/datetime/timezone.service';
import { ConfigurationService } from 'core-app/core/config/configuration.service';
@Component({
- selector: 'op-baseline-',
+ selector: 'op-baseline',
changeDetection: ChangeDetectionStrategy.OnPush,
templateUrl: './baseline.component.html',
styleUrls: ['./baseline.component.sass'],