Skip to content

Commit

Permalink
Fixes countries available field
Browse files Browse the repository at this point in the history
  • Loading branch information
drzackyll committed Nov 15, 2018
1 parent 15cc714 commit 1fe58be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion etools-profile-dropdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
this._setDialogProfileData();
this.userProfileDialog.openUserProfileDialog();
if (!this._allHaveValues('profile')) {
this.fire('global-loading', {active: true, message: 'Loading profile...'});
this.fire('global-loading', {detail: {active: true, message: 'Loading profile...'}});
this.set('_loadingProfileMsgActive', true);
}
},
Expand Down
4 changes: 2 additions & 2 deletions user-profile-dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
label="Available workspaces"
placeholder="—"
selected-values="[[availableCountryIds]]"
options="[[profile.countries_available]]"
options="[[profile.profile.countries_available]]"
option-value="id"
option-label="name"
readonly>
Expand Down Expand Up @@ -132,7 +132,7 @@
}
},
_mapIds: function(profile) {
let availableCountryIds = _.map(this.profile.countries_available, 'id');
let availableCountryIds = _.map(this.profile.profile.countries_available, 'id');
let availableGroups = _.map(this.profile.groups, 'id');

this.set('availableCountryIds', availableCountryIds);
Expand Down

0 comments on commit 1fe58be

Please sign in to comment.