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

[#43695] fixed templates

Eric Schuberta86f8b039014
diff --git a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.html b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.html
index 4c122845287..307014c0356 100644
--- a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.html
+++ b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.html
@@ -28,19 +28,21 @@
*ngIf="showLinkFilesAction | async"
class="spot-body-small op-files-tab--file-list-actions"
>
- <a
+ <button
+ type="button"
class="spot-link op-files-tab--file-list-action-button"
(click)="openStorageLocation()"
>
<span class="spot-icon spot-icon_external-link"></span>
<span [textContent]="text.actions.linkFile(storageType)"></span>
- </a>
- <a
+ </button>
+ <button
+ type="button"
class="spot-link op-files-tab--file-list-action-button"
(click)="openLinkFilesDialog()"
>
<span class="spot-icon spot-icon_add-link"></span>
<span [textContent]="text.actions.linkExisting"></span>
- </a>
+ </button>
</p>
</ng-container>
diff --git a/frontend/src/app/shared/components/file-links/file-picker-modal/file-picker-modal.html b/frontend/src/app/shared/components/file-links/file-picker-modal/file-picker-modal.html
index 48b33cdcabb..3df8a081477 100644
--- a/frontend/src/app/shared/components/file-links/file-picker-modal/file-picker-modal.html
+++ b/frontend/src/app/shared/components/file-links/file-picker-modal/file-picker-modal.html
@@ -4,6 +4,7 @@
<div class="spot-modal--header">
<span class="spot-modal--header_title">{{text.header}}</span>
<button
+ type="button"
class="button button_no-margin"
(click)="openStorageLocation()"
>
@@ -39,12 +40,14 @@
<div class="spot-action-bar">
<div class="spot-action-bar--right">
<button
- class="button button_no-margin spot-action-bar--action"
+ type="button"
+ class="button spot-action-bar--action"
[textContent]="text.buttons.cancel"
(click)="closeMe()"
></button>
<button
- class="button -highlight button_no-margin spot-action-bar--action"
+ type="button"
+ class="button -highlight spot-action-bar--action"
[ngClass]="{ '-highlight': selectedFileCount > 0 }"
[disabled]="selectedFileCount === 0"
(click)="createSelectedFileLinks()"
diff --git a/frontend/src/app/spot/styles/sass/common/container.sass b/frontend/src/app/spot/styles/sass/common/container.sass
index 925c8e38db3..24ed0200dae 100644
--- a/frontend/src/app/spot/styles/sass/common/container.sass
+++ b/frontend/src/app/spot/styles/sass/common/container.sass
@@ -15,7 +15,7 @@
margin: $spot-spacing-1 $spot-spacing-1 0
&:first-child
- margin-top: $spot-spacing-0-5
+ margin-top: $spot-spacing-0_5
&:last-child
margin-bottom: $spot-spacing-1