Skip to content

Commit

Permalink
Merge pull request #1309 from Sage-Bionetworks/develop
Browse files Browse the repository at this point in the history
AG-1338: 3.4.0 RC to staging
  • Loading branch information
JessterB authored May 16, 2024
2 parents 763ad14 + a52fd96 commit 5f1a19a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ <h1 class="gct-heading h2">Gene Comparison Tool</h1>
<div>
<button
(click)="onUnPinGeneClick(gene)"
pTooltip="Unpin this gene"
pTooltip="Unpin this row"
tooltipPosition="top"
tooltipStyleClass="tooltip"
>
Expand Down Expand Up @@ -410,7 +410,7 @@ <h1 class="gct-heading h2">Gene Comparison Tool</h1>
(click)="onPinAllClick()"
[pTooltip]="
getPinDisabledStatus()
? 'You have already pinned the maximum number of Ensembl identifiers (' +
? 'You have already pinned the maximum number of genes (' +
maxPinnedGenes +
'). You must unpin some genes before you can pin more.'
: 'Pin all matching rows to the top.'
Expand Down Expand Up @@ -478,7 +478,7 @@ <h1 class="gct-heading h2">Gene Comparison Tool</h1>
}"
[pTooltip]="
getPinDisabledStatus()
? 'You have already pinned the maximum number of Ensembl identifiers (' +
? 'You have already pinned the maximum number of genes (' +
maxPinnedGenes +
'). You must unpin some genes before you can pin more.'
: 'Pin this row to the top of the list'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -752,14 +752,14 @@ export class GeneComparisonToolComponent implements OnInit, AVI, OnDestroy {
showMaxPinnedRowsErrorToast(rows: number) {
let message = '';
if (rows === 0) {
message = 'No rows were added because you reached the maximum of ' +
this.maxPinnedGenes + ' pinned Ensembl identifiers.';
message = 'No rows were pinned because you reached the maximum of ' +
this.maxPinnedGenes + ' pinned genes.';
} else if (rows === 1) {
message = 'Only ' + rows + ' row was added, because you reached the maximum of ' +
this.maxPinnedGenes + ' pinned Ensembl identifiers.';
message = 'Only ' + rows + ' row were pinned, because you reached the maximum of ' +
this.maxPinnedGenes + ' pinned genes.';
} else {
message = 'Only ' + rows + ' rows were added, because you reached the maximum of ' +
this.maxPinnedGenes + ' pinned Ensembl identifiers.';
message = 'Only ' + rows + ' rows were pinned, because you reached the maximum of ' +
this.maxPinnedGenes + ' pinned genes.';
}

const self = this;
Expand Down Expand Up @@ -807,9 +807,9 @@ export class GeneComparisonToolComponent implements OnInit, AVI, OnDestroy {
sticky: true,
summary: '',
detail:
'Could not pin the requested item because you reached the maximum of ' +
'The row was not pinned because you reached the maximum of ' +
this.maxPinnedGenes +
' pinned Ensembl identifiers.',
' pinned genes.',
});
setTimeout(() => {
self.messageService.clear();
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers/gct-pinning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const expectPinnedProteinsCountText = async (
export const expectTooManyPinnedGenesToast = async (page: Page) => {
const alert = page.getByRole('alert');
await expect(alert).toHaveText(
'Only 50 rows were added, because you reached the maximum of 50 pinned Ensembl identifiers.'
'Only 50 rows were pinned, because you reached the maximum of 50 pinned genes.'
);
};

Expand Down

0 comments on commit 5f1a19a

Please sign in to comment.