From ef7d282186716fdfc7b8c914e5fb69f927d739ab Mon Sep 17 00:00:00 2001 From: Park Byung Eun Date: Wed, 13 Jul 2022 02:47:08 +0000 Subject: [PATCH] ing... --- .../mock-api/apps/member/unconnected/api.ts | 7 +++- .../mock-api/apps/member/unconnected/data.ts | 2 +- .../components/list.component.html | 40 ++++++------------- .../member/unconnected/models/unconnected.ts | 2 +- 4 files changed, 20 insertions(+), 31 deletions(-) diff --git a/src/app/mock-api/apps/member/unconnected/api.ts b/src/app/mock-api/apps/member/unconnected/api.ts index 75af921..eeb4118 100644 --- a/src/app/mock-api/apps/member/unconnected/api.ts +++ b/src/app/mock-api/apps/member/unconnected/api.ts @@ -42,7 +42,12 @@ export class MemberUnconnectedMockApi { let unconnecteds: any[] | null = cloneDeep(this._unconnecteds); // Sort the unconnecteds - if (sort === 'sku' || sort === 'name' || sort === 'active') { + if ( + sort === 'id' || + sort === 'signinId' || + sort === 'nickname' || + sort === 'state' + ) { unconnecteds.sort((a, b) => { const fieldA = a[sort].toString().toUpperCase(); const fieldB = b[sort].toString().toUpperCase(); diff --git a/src/app/mock-api/apps/member/unconnected/data.ts b/src/app/mock-api/apps/member/unconnected/data.ts index 520e6cf..2c3f77d 100644 --- a/src/app/mock-api/apps/member/unconnected/data.ts +++ b/src/app/mock-api/apps/member/unconnected/data.ts @@ -2,7 +2,7 @@ export const unconnecteds = [ { - id: 'on04', + id: '8fcce528-d878-4cc8-99f7-bd3451ed5402', category: 'b899ec30-b85a-40ab-bb1f-18a596d5c6de', name: 'Benton Mens Automatic Watch 44mm 5 ATM', description: diff --git a/src/app/modules/admin/member/unconnected/components/list.component.html b/src/app/modules/admin/member/unconnected/components/list.component.html index fe2c51d..50fccae 100644 --- a/src/app/modules/admin/member/unconnected/components/list.component.html +++ b/src/app/modules/admin/member/unconnected/components/list.component.html @@ -40,20 +40,12 @@ matSortDisableClear >
- - - - - - + + + + + + @@ -62,9 +54,7 @@ - + @@ -77,16 +67,10 @@ - - - - + + + + @@ -104,7 +88,7 @@ diff --git a/src/app/modules/admin/member/unconnected/models/unconnected.ts b/src/app/modules/admin/member/unconnected/models/unconnected.ts index a7ae969..0e0bbd3 100644 --- a/src/app/modules/admin/member/unconnected/models/unconnected.ts +++ b/src/app/modules/admin/member/unconnected/models/unconnected.ts @@ -1,5 +1,5 @@ export interface Unconnected { - id?: string; + id: string; nickname?: string; highRank?: string; rank?: string;