Skip to content

Commit

Permalink
BW-release #comment resolved single edit issue in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendraashutec committed Dec 24, 2019
1 parent c08828d commit 93e170f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,6 @@ export class ProfileSettingsComponent extends ProfileSettings
platformId
);

// this.singleFieldEdit['phoneNo'] = false;
// this.singleFieldEdit['email'] = false;
// this.singleFieldEdit['location'] = false;
// this.singleFieldEdit['socialProfile'] = false;
// this.singleFieldEdit['name'] = false;

this.initDataItems();
requestPermissions();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,18 @@ export class ProfileSettings {
public authenticationProvider: AuthenticationProvider,
@Inject(PLATFORM_ID) public platformId: Object
) {

// remove single field edit for mobile
if (!(
isPlatformBrowser(this.platformId) === false &&
isPlatformServer(this.platformId) === false
)) {
delete this.singleFieldEdit.email;
delete this.singleFieldEdit.phoneNo;
delete this.singleFieldEdit.socialProfile;
delete this.singleFieldEdit.name;
}

this.toggleLoader(true);
this.fb = formBuilder;
this.tagsObs = this.store.select(getTags);
Expand Down

0 comments on commit 93e170f

Please sign in to comment.