powerball에 회원상세보기 추가

This commit is contained in:
이담 정 2022-07-07 12:34:49 +00:00
parent bf1c18fea3
commit 012b2be24c
3 changed files with 21 additions and 4 deletions

View File

@ -201,10 +201,16 @@
</div> </div>
<!-- id, nickname --> <!-- id, nickname -->
<ng-container *ngIf="users$ | async as users">
<ng-container
*ngFor="let user of users; trackBy: __trackByFn"
>
<div class="hidden sm:block truncate"> <div class="hidden sm:block truncate">
{{ powerball.id }} {{ powerball.id }}
({{ powerball.nickname }}) ({{ powerball.nickname }})
</div> </div>
</ng-container>
</ng-container>
<!-- bettingProgress --> <!-- bettingProgress -->
<div class="hidden sm:block truncate"> <div class="hidden sm:block truncate">

View File

@ -29,6 +29,7 @@ import {
import { fuseAnimations } from '@fuse/animations'; import { fuseAnimations } from '@fuse/animations';
import { FuseConfirmationService } from '@fuse/services/confirmation'; import { FuseConfirmationService } from '@fuse/services/confirmation';
import { User } from 'app/modules/admin/member/user/models/user';
import { Powerball } from '../models/powerball'; import { Powerball } from '../models/powerball';
import { PowerballPagination } from '../models/powerball-pagination'; import { PowerballPagination } from '../models/powerball-pagination';
import { PowerballService } from '../services/powerball.service'; import { PowerballService } from '../services/powerball.service';
@ -65,6 +66,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
@ViewChild(MatSort) private _sort!: MatSort; @ViewChild(MatSort) private _sort!: MatSort;
powerballs$!: Observable<Powerball[] | undefined>; powerballs$!: Observable<Powerball[] | undefined>;
users$!: Observable<User[] | undefined>;
isLoading = false; isLoading = false;
searchInputControl = new FormControl(); searchInputControl = new FormControl();

View File

@ -1,8 +1,10 @@
import { Route } from '@angular/router'; import { Route } from '@angular/router';
import { ListComponent } from './components/list.component'; import { ListComponent } from './components/list.component';
import { ViewComponent } from '../../member/user/components/view.component';
import { PowerballsResolver } from './resolvers/powerball.resolver'; import { PowerballsResolver } from './resolvers/powerball.resolver';
import { UserResolver } from '../../dashboards/user/user.resolvers';
export const powerballRoutes: Route[] = [ export const powerballRoutes: Route[] = [
{ {
@ -12,4 +14,11 @@ export const powerballRoutes: Route[] = [
deposits: PowerballsResolver, deposits: PowerballsResolver,
}, },
}, },
{
path: ':id',
component: ViewComponent,
resolve: {
users: UserResolver,
},
},
]; ];