Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
</div>
</div>
<div class="item2">
<div *ngIf="router.indexOf('create') === -1">
<h3>{{'center.center-name'|translate}}:&nbsp;<span>{{headerData.name}}</span></h3>
<p>{{'center.center-id'|translate}}:&nbsp; <span>{{headerData.id}}</span></p>
<p class="small-text">{{'center.status'|translate}}:&nbsp; <span>{{headerData.isActive | status}}</span></p>
</div>
</div>
<mat-divider [vertical]="true" [inset]="true"></mat-divider>
<div class="item3">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { CenterModel } from 'src/app/core/models/center.model';
import { HeaderService } from 'src/app/core/services/header.service';

import * as appConstants from '../../../../app.constants';
import { Router } from '@angular/router';

@Component({
selector: 'app-center-header',
Expand All @@ -22,7 +23,7 @@ import * as appConstants from '../../../../app.constants';
})
export class CenterHeaderComponent implements OnInit, OnChanges {
actionButtonElipses = new Array();

router;
lang: string;

@Input() headerData: HeaderModel;
Expand All @@ -32,9 +33,12 @@ export class CenterHeaderComponent implements OnInit, OnChanges {
private dataSerice: DataStorageService,
private appService: AppConfigService,
private headerService: HeaderService,
private commonService: CommonService
private commonService: CommonService,
private _router: Router

) {
this.lang = headerService.getUserPreferredLanguage();
this.router = _router.url;
}

ngOnInit() {}
Expand Down
4 changes: 2 additions & 2 deletions admin-ui/src/assets/entity-spec/templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"validations": ""
},
{
"buttonName": { "eng": "Filter", "ara": "تصفيه", "fra": "filtre" },
"buttonName": { "eng": "Filter", "ara": "تصفيه", "fra": "filtre","hin": "फ़िल्टर" },

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kindly provide in kannada and tamil also

"imagePath": "assets/images/filter.png",
"actionListType": "action",
"actionURL": { "case": "filter" },
Expand Down Expand Up @@ -356,7 +356,7 @@
"name": "isActive",
"showInListView": "true",
"showInSingleView": "false",
"label": { "eng": "Status", "ara": "نشط", "fra": "c'est actif" },
"label": { "eng": "Status", "ara": "نشط", "fra": "c'est actif","hin": "स्थिति" },

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kindly provide in kannada and tamil also

"sortOrder": "",
"showAsLink": "false",
"linkType": "",
Expand Down