Skip to content

Commit

Permalink
Merge pull request #6150 from deNBI/fix/fm_tooltips
Browse files Browse the repository at this point in the history
fix(Facility Manager): Missing tooltips on application management buttons
  • Loading branch information
qqmok authored Aug 16, 2024
2 parents a7b429b + dab2911 commit f5a928f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
(click)="showConfirmationModal(ConfirmationActions.APPROVE_APPLICATION)"
type=" button"
class="btn btn-success"
tooltip="Approve Application"
>
<i class="fa fa-check"></i>&nbsp;
<span class="d-none">Approve</span>
Expand All @@ -23,6 +24,7 @@
(click)="showConfirmationModal(ConfirmationActions.DECLINE_APPLICATION)"
type="button"
class="btn btn-danger"
tooltip="Decline Application"
>
<i class="fa fa-times"></i>&nbsp;
<span class="d-none">Decline</span>
Expand All @@ -36,6 +38,7 @@
type="button"
[attr.data-test-id]="'extension_approval_' + application?.project_application_name"
class="btn btn-success"
tooltip="Approve Extension"
>
<i class="fa fa-check"></i>&nbsp;
<span class="d-none">Approve Extension</span>
Expand All @@ -48,6 +51,7 @@
(click)="showConfirmationModal(ConfirmationActions.DECLINE_EXTENSION)"
type="button"
class="btn btn-danger"
tooltip="Decline Extension"
>
<i class="fa fa-times"></i>&nbsp;
<span class="d-none">Decline Extension</span>
Expand All @@ -62,6 +66,7 @@
class="btn btn-success"
[attr.data-test-id]="'approveModificationButton_' + application?.project_application_shortname"
(click)="showConfirmationModal(ConfirmationActions.APPROVE_MODIFICATION)"
tooltop="Approve Modification"
>
<i class="fa fa-check"></i>&nbsp;
<span class="d-none">Approve Modification</span>
Expand All @@ -73,6 +78,7 @@
(click)="showConfirmationModal(ConfirmationActions.DECLINE_MODIFICATION)"
type="button"
class="btn btn-danger"
tooltip="Decline Modification"
>
<i class="fa fa-times"></i>
<span class="d-none">Decline Modification</span>
Expand All @@ -85,6 +91,7 @@
type="button"
class="btn btn-danger"
data-test-id="terminate_project_btn"
tooltip="Terminate Project"
(click)="showConfirmationModal(ConfirmationActions.APPROVE_TERMINATION)"
>
<i class="fa fa-check"></i>&nbsp;
Expand All @@ -97,6 +104,7 @@
(click)="showConfirmationModal(ConfirmationActions.DECLINE_TERMINATION)"
type="button"
class="btn btn-warning"
tooltip="Decline Termination"
>
<i class="fa fa-times"></i>
<span class="d-none"> Decline Termination</span>
Expand All @@ -109,7 +117,7 @@
type="button"
class="btn btn-secondary"
style="margin: 2px"
tooltip="Show details"
tooltip="{{ isCollapsed ? 'Show' : 'Hide' }} details"
>
<i class="fa fa-info-circle"></i>&nbsp;
<span class="d-none" [hidden]="!isCollapsed">Show</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export class ApplicationFacilityActionsComponent extends AbstractBaseClass {
}

switchCollaps() {
this.switchCollapseEvent.emit()
this.isCollapsed = !this.isCollapsed;
this.switchCollapseEvent.emit();
}

triggerRemoveApplication() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
[disabled]="!selectedComputeCenter"
type="button"
class="btn btn-success"
tooltip="Approve Application!!!"
tooltip="Approve Application"
>
<i class="fa fa-check"></i>&nbsp;
<span class="d-none">Approve & Create </span>
Expand Down

0 comments on commit f5a928f

Please sign in to comment.