Skip to content

Commit

Permalink
Account management section design changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hughns committed Feb 17, 2023
1 parent 64fe60e commit 576623c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/platform/web/ui/session/settings/SettingsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ export class SettingsView extends TemplateView {

settingNodes.push(
t.if(vm => vm.accountManagementUrl, t => {
return t.p([vm.i18n`You can manage your account `, t.a({href: vm.accountManagementUrl, target: "_blank"}, vm.i18n`here`), "."]);
const url = new URL(vm.accountManagementUrl);
return t.div([
t.h3("Account"),
t.p([vm.i18n`Your account details are managed separately at `, t.code(url.hostname), "."]),
t.button({ onClick: () => window.open(vm.accountManagementUrl, '_blank') }, vm.i18n`Manage account`),
]);
}),
);

Expand Down

0 comments on commit 576623c

Please sign in to comment.