Skip to content

Commit

Permalink
Add "Open Settings" to right settings menu
Browse files Browse the repository at this point in the history
- Hide the layout options
  • Loading branch information
sondreb committed Nov 14, 2024
1 parent 6d71e3a commit 1a82211
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 9 additions & 4 deletions src/app/layout/common/user/user.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,16 @@

<mat-divider></mat-divider>

<button mat-menu-item [routerLink]="['/settings']">
<mat-icon [svgIcon]="'heroicons_outline:cog-8-tooth'"></mat-icon>
<span>Open Settings</span>
</button>

<!-- Layout Selection -->
<button mat-menu-item (click)="setLayout('classic')">
<!-- <button mat-menu-item (click)="setLayout('classic')">
<span>Classic Layout</span>
</button>
<button mat-menu-item (click)="setLayout('modern')">
</button> -->
<!-- <button mat-menu-item (click)="setLayout('modern')">
<span>Modern Layout</span>
</button>
</button> -->
</mat-menu>
3 changes: 2 additions & 1 deletion src/app/layout/common/user/user.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { MatDividerModule } from '@angular/material/divider';
import { MatIconModule } from '@angular/material/icon';
import { MatMenuModule } from '@angular/material/menu';
import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
import { Router } from '@angular/router';
import { Router, RouterModule } from '@angular/router';
import { StorageService } from 'app/services/storage.service';
import { SignerService } from 'app/services/signer.service';
import { Subject, takeUntil } from 'rxjs';
Expand All @@ -37,6 +37,7 @@ import { NostrLoginService } from 'app/services/nostr-login.service';
MatIconModule,
MatDividerModule,
CommonModule,
RouterModule
],
})
export class UserComponent implements OnInit, OnDestroy {
Expand Down

0 comments on commit 1a82211

Please sign in to comment.