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
[#43260] removed hover effect on disabled file links
Eric Schubert63779cdbfac9
diff --git a/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.component.ts b/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.component.tsindex c29449376c5..5cc54091dbc 100644--- a/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.component.ts+++ b/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.component.ts@@ -81,6 +81,7 @@ export class FileLinkListItemComponent implements OnInit, AfterViewInit {floatingText: {noViewPermission: this.i18n.t('js.storages.file_links.no_permission'),},+ removalConfirmation: this.i18n.t('js.storages.file_links.remove_confirmation'),};constructor(@@ -125,4 +126,10 @@ export class FileLinkListItemComponent implements OnInit, AfterViewInit {);}}++ public confirmRemoveFileLink():void {+ if (window.confirm(this.text.removalConfirmation)) {+ this.removeFileLink.emit();+ }+ }}diff --git a/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.html b/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.htmlindex 0746a830351..1e703b75318 100644--- a/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.html+++ b/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.html@@ -1,6 +1,9 @@-<div class="spot-list--item-floating-wrapper">+<div+ class="spot-list--item-floating-wrapper op-files-tab--file-list-item-floating-wrapper"+ [ngClass]="{ 'no-hover': disabled }"+><a- class="spot-list--item-action op-files-tab--file-list-item-action"+ class="spot-list--item-action spot-list--item-action_link op-files-tab--file-list-item-action"[ngClass]="{ 'disabled': disabled, 'view-not-allowed': !viewAllowed }"[href]="fileLink._links.staticOriginOpen.href"[title]="fileLink.originData.name"@@ -49,7 +52,7 @@*ngIf="allowEditing"class="spot-link"[title]="text.title.removeFileLink"- (click)="removeFileLink.emit()"+ (click)="confirmRemoveFileLink()"><span class="spot-icon spot-icon_remove-link"></span></button>diff --git a/frontend/src/global_styles/content/work_packages/tabs/_files.sass b/frontend/src/global_styles/content/work_packages/tabs/_files.sassindex a646825a6bb..8a98aeaf6f9 100644--- a/frontend/src/global_styles/content/work_packages/tabs/_files.sass+++ b/frontend/src/global_styles/content/work_packages/tabs/_files.sass@@ -71,6 +71,9 @@.op-files-tab--file-list-item-floating-actionspadding-right: 0+ .op-files-tab--file-list-item-floating-wrapper.no-hover:hover+ background: none+.op-files-tab--file-list-item-floating-text@include spot-body-small()@@ -92,7 +95,7 @@grid-area: iconwidth: 3.375remheight: 3.375rem- font-size: 1.25rem+ font-size: 1.75remmargin-right: $spot_spacing-0-5.text-boxdiff --git a/modules/storages/app/views/storages/admin/storages/_form.html.erb b/modules/storages/app/views/storages/admin/storages/_form.html.erbindex 4f76a8e519b..026966fb646 100644--- a/modules/storages/app/views/storages/admin/storages/_form.html.erb+++ b/modules/storages/app/views/storages/admin/storages/_form.html.erb@@ -54,6 +54,7 @@ See COPYRIGHT and LICENSE files for more details.</div><div class="form--field -required"><%= f.text_field :host,+ label: t('storages.label_host'),type: :url,required: true,pattern: ".{1,255}",diff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.ymlindex 1b334f45c2d..2cbfc70833b 100644--- a/modules/storages/config/locales/en.yml+++ b/modules/storages/config/locales/en.yml@@ -72,7 +72,7 @@ en:label_file_link: "File link"label_file_links: "File links"label_name: "Name"- label_host: "Host"+ label_host: "Host URL"label_oauth_breadcrumb:openproject: "OpenProject OAuth"nextcloud: "Nextcloud OAuth"diff --git a/modules/storages/config/locales/js-en.yml b/modules/storages/config/locales/js-en.ymlindex 7c9665125f4..e8a24f7ed93 100644--- a/modules/storages/config/locales/js-en.yml+++ b/modules/storages/config/locales/js-en.yml@@ -13,8 +13,7 @@ en:information:connection_error: >- Some %{storageType} settings are not working. Please try to login again or contact your %{storageType}- administrator.+ Some %{storageType} settings are not working. Please contact your %{storageType} administrator.live_data_error: "Error fetching file details"live_data_error_description: >Some %{storageType} data could not be fetched. Please try to reload this page or contact your %{storageType}@@ -29,3 +28,4 @@ en:open: 'Open file on storage'open_location: 'Open file in location'remove: "Remove file link"+ remove_confirmation: "Are you sure you want to unlink the file from the work package?"