Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Issue #SB-9620 merge: Merge pull request #473 from sudip-mukherjee/re…
Browse files Browse the repository at this point in the history
…lease-1.14.0

 Issue #SB-9620 fix: Changed Key for translation
  • Loading branch information
AmiableAnil authored Feb 14, 2019
2 parents 7a5f244 + 61b175b commit 2a57c3c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{{'ERROR_NAME_INVALID' | translate}}</div>
</ion-label>
<ion-input class="form-control" #name formControlName="name" placeholder="{{ 'NAME_HINT' | translate }}"
(ionChange)="enableSubmitButton();"></ion-input>
(ionChange)="enableSubmitButton();" dir="{{commonUtilService.getAppDirection()}}"></ion-input>
</ion-item>
<ion-item>
<ion-label stacked class="label-font">{{'STATE' | translate}}</ion-label>
Expand Down
12 changes: 10 additions & 2 deletions src/pages/search/filters/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { NavParams, PopoverController, NavController, Events, Platform } from 'i
import { CommonUtilService } from '../../../service/common-util.service';
import * as _ from 'lodash';
import { FilterOptions } from './options/options';
import { IonicApp } from 'ionic-angular';

@Component({
selector: 'page-filter',
Expand All @@ -22,7 +23,8 @@ export class FilterPage {
private navCtrl: NavController,
private events: Events,
private commonUtilService: CommonUtilService,
private platform: Platform
private platform: Platform,
private ionicApp: IonicApp
) {
this.init();
this.handleBackButton();
Expand Down Expand Up @@ -105,7 +107,13 @@ export class FilterPage {
*/
handleBackButton() {
this.unregisterBackButton = this.platform.registerBackButtonAction(() => {
this.navCtrl.pop();
const activePortal = this.ionicApp._modalPortal.getActive() ||
this.ionicApp._toastPortal.getActive() || this.ionicApp._overlayPortal.getActive();
if (activePortal) {
activePortal.dismiss();
} else if (this.navCtrl.canGoBack()) {
this.navCtrl.pop();
}
this.unregisterBackButton();
}, 11);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export class AddOrRemoveGroupUserPage {
}
},
{
text: this.commonUtilService.translateMessage('Yes'),
text: this.commonUtilService.translateMessage('YES'),
cssClass: 'alert-btn-delete',
handler: () => {
this.deleteUsersFromGroup();
Expand Down
4 changes: 2 additions & 2 deletions src/pages/user-and-groups/group-details/group-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export class GroupDetailsPage {
}
},
{
text: this.translateMessage('Yes'),
text: this.translateMessage('YES'),
cssClass: 'alert-btn-delete',
handler: () => {
this.deleteGroup();
Expand Down Expand Up @@ -424,7 +424,7 @@ export class GroupDetailsPage {
}
},
{
text: this.translateMessage('Yes'),
text: this.translateMessage('YES'),
cssClass: 'alert-btn-delete',
handler: () => {
this.deleteUsersinGroup(index);
Expand Down
4 changes: 2 additions & 2 deletions src/pages/user-and-groups/user-and-groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ export class UserAndGroupsPage {
}
},
{
text: this.translateMessage('Yes'),
text: this.translateMessage('YES'),
cssClass: 'alert-btn-delete',
handler: () => {
this.deleteGroup(index);
Expand Down Expand Up @@ -618,7 +618,7 @@ export class UserAndGroupsPage {
}
},
{
text: this.translateMessage('Yes'),
text: this.translateMessage('YES'),
cssClass: 'alert-btn-delete',
handler: () => {
this.deleteUser(index);
Expand Down

0 comments on commit 2a57c3c

Please sign in to comment.