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

[#42158] added hover title on action elements

Eric Schubert091d0c8fb815
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index ee2231bd09d..23eb272e239 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -443,6 +443,8 @@ en:
label_open_menu: "Open menu"
label_open_context_menu: "Open context menu"
label_open_work_packages: "open"
+ label_open_file_link: 'Open file on storage'
+ label_open_file_link_location: 'Open file in location'
label_password: "Password"
label_previous: "Previous"
label_per_page: "Per page:"
diff --git a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list-item.component.ts b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list-item.component.ts
index 20c3ed5f3f2..31f2099c874 100644
--- a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list-item.component.ts
+++ b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list-item.component.ts
@@ -54,6 +54,13 @@ export class FileLinkListItemComponent implements OnInit {
public fileLinkIcon:IFileLinkListItemIcon;
+ public text = {
+ title: {
+ openFile: this.i18n.t('js.label_open_file_link'),
+ openFileLocation: this.i18n.t('js.label_open_file_link_location'),
+ },
+ };
+
constructor(
private readonly i18n:I18nService,
private readonly timezoneService:TimezoneService,
diff --git a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list-item.html b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list-item.html
index b2fe6dcd52a..6e001d2e4a5 100644
--- a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list-item.html
+++ b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list-item.html
@@ -8,6 +8,7 @@
<a
[textContent]="fileLink.originData.name"
+ [title]="text.title.openFile"
(click)="openLinkedFile(false)"
></a>
</div>
@@ -30,6 +31,7 @@
>
<button
class="spot-link"
+ [title]="text.title.openFileLocation"
(click)="openLinkedFile(true)"
>
<span