Skip to content

Commit

Permalink
✔ Fix Left Side Nav Menu 🤔
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed May 3, 2023
1 parent 2a64aa5 commit 9cfec42
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dist/fansubid/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<noscript>🎉 Harap Menyalakan JavaScript Untuk Dapat Mengakses Website Ini ✨</noscript>
</div>
<app-root></app-root>
<script src="runtime.bf69345649afc59d.js" type="module"></script><script src="polyfills.325a71d3e423341a.js" type="module"></script><script src="scripts.03e7a8120a25f41a.js" defer></script><script src="main.7036a8be948dae49.js" type="module"></script>
<script src="runtime.bf69345649afc59d.js" type="module"></script><script src="polyfills.325a71d3e423341a.js" type="module"></script><script src="scripts.03e7a8120a25f41a.js" defer></script><script src="main.01856fb8d784fe7d.js" type="module"></script>


</body></html>
1 change: 1 addition & 0 deletions dist/fansubid/browser/main.01856fb8d784fe7d.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/fansubid/browser/main.7036a8be948dae49.js

This file was deleted.

8 changes: 4 additions & 4 deletions dist/fansubid/browser/ngsw.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"configVersion": 1,
"timestamp": 1683129687077,
"timestamp": 1683131297818,
"index": "/index.html",
"assetGroups": [
{
Expand Down Expand Up @@ -39,7 +39,7 @@
"/common.352e8983d5b95d05.js",
"/favicon.ico",
"/index.html",
"/main.7036a8be948dae49.js",
"/main.01856fb8d784fe7d.js",
"/manifest.webmanifest",
"/polyfills.325a71d3e423341a.js",
"/runtime.bf69345649afc59d.js",
Expand Down Expand Up @@ -110,8 +110,8 @@
"/938.ff68b5c4111cea5e.js": "080c0a983ed364772d347904ee047a1536afb931",
"/common.352e8983d5b95d05.js": "177e7ac9ed10a52b1fcd43bf59721e0ede7d7bec",
"/favicon.ico": "071facb8fab2e4b3493dcfbb0b02d7bd21bca97e",
"/index.html": "09ab177b5dd6e0f8d2843f2e5979ef82f6c243ef",
"/main.7036a8be948dae49.js": "2cf05b58bdc97adc4a422f6da86252044507b9c5",
"/index.html": "333caa67ac8768bba5ee97e75e9fb2a4a690fb13",
"/main.01856fb8d784fe7d.js": "91731cd69e55a9d9fffaf293698dbe2e3144b44f",
"/manifest.webmanifest": "eafb5426cdc9fd714787e5453af315b9972875a3",
"/polyfills.325a71d3e423341a.js": "18f8a8b77e7d11be1385d438c6d218cc68c0edb3",
"/runtime.bf69345649afc59d.js": "eaee14963cd73ce945d04438fca60db913c7e4ab",
Expand Down
2 changes: 1 addition & 1 deletion dist/fansubid/server/main.js

Large diffs are not rendered by default.

21 changes: 8 additions & 13 deletions src/app/_shared/components/left-menu/left-menu.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,32 @@
}">

<div fxLayout="column">
<div *ngIf="AS.currentUserSubject?.value; then sudahLogin; else belumLogin;"></div>
<ng-template #sudahLogin>
<mat-nav-list>

<mat-nav-list>
<div *ngIf="AS.currentUserSubject?.value; then sudahLogin; else belumLogin;"></div>
<ng-template #sudahLogin>
<a mat-list-item routerLink="/user" routerLinkActive="side-menu-link-active" (click)="forceCloseSideNav()">
<img class="jim" src="{{ AS.currentUserSubject?.value?.image_url }}" />
<span [@animateText]="linkText ? 'show' : 'hide'" style="padding-left: 1.2em; padding-right: 0.2em;" class="text-truncate">
{{ AS.currentUserSubject?.value?.kartu_tanda_penduduk_.nama }} <br /> {{ AS.currentUserSubject?.value?._email }}
</span>
</a>
</mat-nav-list>
<mat-nav-list>
<a mat-list-item (click)="logout()">
<mat-icon style="padding-left: 0.2em;">power_settings_new</mat-icon>
<span [@animateText]="linkText ? 'show' : 'hide'" style="padding-left: 1.75em; padding-right: 0.2em;">Keluar</span>
</a>
</mat-nav-list>
</ng-template>
<ng-template #belumLogin>
<mat-nav-list>
</ng-template>
<ng-template #belumLogin>
<a mat-list-item routerLink="/login" (click)="forceCloseSideNav()" routerLinkActive="side-menu-link-active">
<mat-icon style="padding-left: 0.2em;">login</mat-icon>
<span [@animateText]="linkText ? 'show' : 'hide'" style="padding-left: 1.75em; padding-right: 0.2em;">Masuk</span>
</a>
</mat-nav-list>
<mat-nav-list>
<a mat-list-item routerLink="/register" (click)="forceCloseSideNav()" routerLinkActive="side-menu-link-active">
<mat-icon style="padding-left: 0.2em;">group_add</mat-icon>
<span [@animateText]="linkText ? 'show' : 'hide'" style="padding-left: 1.75em; padding-right: 0.2em;">Daftar</span>
</a>
</mat-nav-list>
</ng-template>
</ng-template>
</mat-nav-list>

<mat-divider style="margin-top: 8px;"></mat-divider>

Expand Down

0 comments on commit 9cfec42

Please sign in to comment.