Skip to content

Commit

Permalink
fix: account settings link no more disabled in settings menu (#148)
Browse files Browse the repository at this point in the history
* fix: account settings link no more disabled in settings menu

* test: settings menu update
  • Loading branch information
phoebus-84 authored Sep 2, 2024
1 parent c5ff7a6 commit 8d82839
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/settings-menu/d-settings-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class DSettingsMenu {
@Prop() version: string;
@Prop() developedBy: string;
@Prop() logoutCB: () => void;
@Prop() gotoAccountSettings: () => void;
@Prop() gotoLanguageSettings: () => void;
@Prop() openAppSettings: () => void;

Expand All @@ -25,7 +26,7 @@ export class DSettingsMenu {
<div class="flex flex-col justify-between">
<div class="flex flex-col gap-4">
<d-buttons-group>
<d-button aria-hidden size="large" disabled>
<d-button aria-hidden size="large" onClick={this.gotoAccountSettings}>
{this.accountSettings}
<d-icon icon="profile" slot="start" outline />
</d-button>
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings-menu/test/d-settings-menu.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('d-settings-menu', () => {
<div class="flex flex-col justify-between">
<div class="flex flex-col gap-4">
<d-buttons-group>
<d-button aria-hidden="" disabled="" size="large">
<d-button aria-hidden="" size="large">
<d-icon icon="profile" outline="" slot="start"></d-icon>
</d-button>
<d-button disabled="" href="/" size="large">
Expand Down

0 comments on commit 8d82839

Please sign in to comment.