|
@@ -14,20 +14,26 @@ export class ExternalPageHeaderComponent implements OnInit {
|
|
private externalService: ExternalPageService,
|
|
private externalService: ExternalPageService,
|
|
private router: Router) { }
|
|
private router: Router) { }
|
|
|
|
|
|
- currentDate: any = Date.now();//ararbic date
|
|
|
|
|
|
+ currentDate: any = Date.now()//ararbic date
|
|
|
|
|
|
currentEnglishDate: any = Date.now(); //english date
|
|
currentEnglishDate: any = Date.now(); //english date
|
|
|
|
|
|
|
|
+ 372
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
dataLoginUser:any;
|
|
dataLoginUser:any;
|
|
|
|
|
|
ngOnInit() {
|
|
ngOnInit() {
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
this.authSer.arabicTemplate = true;
|
|
this.authSer.arabicTemplate = true;
|
|
this.authSer.showDashboardHeader = false;
|
|
this.authSer.showDashboardHeader = false;
|
|
this.authSer.setLocalLang(); //set languages icons
|
|
this.authSer.setLocalLang(); //set languages icons
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ console.log('current data ', this.currentDate);
|
|
|
|
+
|
|
this.currentDate = this.authSer.writeHijri(new Date(this.currentDate), 'ar', 'header');
|
|
this.currentDate = this.authSer.writeHijri(new Date(this.currentDate), 'ar', 'header');
|
|
|
|
|
|
if(!this.authSer.isAuthenticated()) {
|
|
if(!this.authSer.isAuthenticated()) {
|