|
|
|
|
@ -9,6 +9,8 @@ import { WorklistService } from '../service/worklist.service';
|
|
|
|
|
import { IonInfiniteScroll } from '@ionic/angular';
|
|
|
|
|
import { WorklistMainService } from '../service/work-list.main.service';
|
|
|
|
|
import { WorklistAdvancedSearchComponent } from '../worklist-advanced-search/worklist-advanced-search.component';
|
|
|
|
|
import { AuthenticatedUser } from 'src/app/hmg-common/services/authentication/models/authenticated-user';
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'app-home',
|
|
|
|
|
templateUrl: './home.component.html',
|
|
|
|
|
@ -46,9 +48,6 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
public isSearch: boolean = false;
|
|
|
|
|
public direction = 'ltr';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public options = {
|
|
|
|
|
cutoutPercentage: 80,
|
|
|
|
|
tooltips: { enabled: false },
|
|
|
|
|
@ -133,6 +132,10 @@ constructor(
|
|
|
|
|
this.WorkListObj.P_PAGE_LIMIT = 50; //number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public userData: any;
|
|
|
|
|
public userImage: any = '../assets/imgs/profile.png';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
activeFilter(index: number) {
|
|
|
|
|
for (const filter of this.filters) {
|
|
|
|
|
filter.active = false;
|
|
|
|
|
@ -140,6 +143,9 @@ constructor(
|
|
|
|
|
this.filters[index].active = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
openProfilePage() {
|
|
|
|
|
this.common.openProfile();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async openSearchModal() {
|
|
|
|
|
console.log('umar786');
|
|
|
|
|
@ -175,6 +181,8 @@ constructor(
|
|
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
|
// this.direction = TranslatorService.getCurrentDirection();
|
|
|
|
|
this.userData = this.common.sharedService.getSharedData(AuthenticatedUser.SHARED_DATA, false);
|
|
|
|
|
this.userImage = this.userData.EMPLOYEE_IMAGE ? 'data:image/png;base64,' + this.userData.EMPLOYEE_IMAGE : this.userImage;
|
|
|
|
|
}
|
|
|
|
|
ionViewDidLoad() {
|
|
|
|
|
// this.navBar.backButtonClick = () => {
|
|
|
|
|
|