Skip to content
Snippets Groups Projects
Verified Commit 3b347332 authored by Damien's avatar Damien
Browse files

FEAT #7847 Refactoring

parent e3020552
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ import { MediaMatcher } from '@angular/cdk/layout'; ...@@ -3,7 +3,7 @@ import { MediaMatcher } from '@angular/cdk/layout';
import { HttpClient } from '@angular/common/http'; import { HttpClient } from '@angular/common/http';
import { LANG } from './translate.component'; import { LANG } from './translate.component';
import { NotificationService } from './notification.service'; import { NotificationService } from './notification.service';
import { MatPaginator, MatTableDataSource, MatSort, MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material'; import { MatPaginator, MatTableDataSource, MatSort, MatDialog, MatDialogRef } from '@angular/material';
import { AutoCompletePlugin } from '../plugins/autocomplete.plugin'; import { AutoCompletePlugin } from '../plugins/autocomplete.plugin';
...@@ -23,6 +23,7 @@ export class ProfileComponent extends AutoCompletePlugin implements OnInit { ...@@ -23,6 +23,7 @@ export class ProfileComponent extends AutoCompletePlugin implements OnInit {
private _mobileQueryListener : () => void; private _mobileQueryListener : () => void;
mobileQuery : MediaQueryList; mobileQuery : MediaQueryList;
dialogRef : MatDialogRef<any>; dialogRef : MatDialogRef<any>;
coreUrl : string; coreUrl : string;
lang : any = LANG; lang : any = LANG;
...@@ -59,6 +60,7 @@ export class ProfileComponent extends AutoCompletePlugin implements OnInit { ...@@ -59,6 +60,7 @@ export class ProfileComponent extends AutoCompletePlugin implements OnInit {
displayedColumns = ['event_date','info']; displayedColumns = ['event_date','info'];
dataSource = new MatTableDataSource(this.histories); dataSource = new MatTableDataSource(this.histories);
@ViewChild(MatPaginator) paginator: MatPaginator; @ViewChild(MatPaginator) paginator: MatPaginator;
@ViewChild(MatSort) sort: MatSort; @ViewChild(MatSort) sort: MatSort;
applyFilter(filterValue: string) { applyFilter(filterValue: string) {
......
...@@ -375,8 +375,7 @@ class UserController ...@@ -375,8 +375,7 @@ class UserController
} }
return $response->withJson([ return $response->withJson([
'baskets' => BasketModel::getBasketsByUserId(['userId' => $user['user_id'], 'unneededBasketId' => ['IndexingBasket']]), 'baskets' => BasketModel::getBasketsByUserId(['userId' => $user['user_id'], 'unneededBasketId' => ['IndexingBasket']])
'redirectedBaskets' => BasketModel::getRedirectedBasketsByUserId(['userId' => $user['user_id']])
]); ]);
} }
...@@ -411,8 +410,7 @@ class UserController ...@@ -411,8 +410,7 @@ class UserController
]); ]);
return $response->withJson([ return $response->withJson([
'baskets' => BasketModel::getBasketsByUserId(['userId' => $user['user_id'], 'unneededBasketId' => ['IndexingBasket']]), 'baskets' => BasketModel::getBasketsByUserId(['userId' => $user['user_id'], 'unneededBasketId' => ['IndexingBasket']])
'redirectedBaskets' => BasketModel::getRedirectedBasketsByUserId(['userId' => $user['user_id']])
]); ]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment