Skip to content

Commit 6e027fe

Browse files
authored
style(addons): Update redirect language (#848)
1 parent 9d20f45 commit 6e027fe

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/app/shared/components/addons/addon-terms/addon-terms.component.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
<p class="mb-4">
33
{{ 'settings.addons.connectAddon.redirectAddons.terms' | translate }}
44
</p>
5-
<em
6-
class="ml-2"
5+
<p
76
[innerHTML]="
87
'settings.addons.connectAddon.redirectAddons.tip'
98
| translate: { serviceName: addon()?.displayName, serviceUrl: redirectUrl() }
109
"
11-
></em>
10+
></p>
1211
} @else {
1312
<p-table [value]="terms()" class="addon-table">
1413
<ng-template pTemplate="header">

src/app/shared/components/addons/addon-terms/addon-terms.component.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,7 @@ describe('AddonTermsComponent', () => {
231231

232232
const termsElement: HTMLElement = fixture.nativeElement;
233233
expect(termsElement.querySelectorAll('tr').length).toBe(0);
234-
expect(termsElement.querySelectorAll('p').length).toBe(1);
235-
expect(termsElement.querySelectorAll('em').length).toBe(1);
234+
expect(termsElement.querySelectorAll('p').length).toBe(2);
236235
expect(termsElement.textContent).toContain('settings.addons.connectAddon.redirectAddons.terms');
237236
});
238237
});

src/assets/i18n/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,8 +1762,8 @@
17621762
},
17631763
"redirectAddons": {
17641764
"terms": "Clicking the button below will redirect you outside of OSF. You will need to follow that service's permissions to continue.",
1765-
"tip": "Tip: if the page does not open, please disable your browser's pop-up blocker and try again. Or click on this link to <a target='_blank' href={{serviceUrl}}>go to {{serviceName}}</a>.",
1766-
"popupError": "If you are having trouble with the pop-up window, please try clicking the link above to connect your account:",
1765+
"tip": "If the page does not open, disable your browser's pop-up blocker and try again. Or click on this link to <a target='_blank' href={{serviceUrl}}>go to {{serviceName}}</a>.",
1766+
"popupError": "If you are having trouble with the pop-up window, try clicking the link above to connect your account:",
17671767
"goToService": "Go to {{serviceName}}"
17681768
},
17691769
"confirmAccount": "Confirm account",

0 commit comments

Comments
 (0)