From 1fe58be562c92776da6b85510324cd18219dd4ce Mon Sep 17 00:00:00 2001 From: drzackyll Date: Thu, 15 Nov 2018 12:23:30 -0500 Subject: [PATCH] Fixes countries available field --- etools-profile-dropdown.html | 2 +- user-profile-dialog.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etools-profile-dropdown.html b/etools-profile-dropdown.html index cb5ab3c..432a04f 100644 --- a/etools-profile-dropdown.html +++ b/etools-profile-dropdown.html @@ -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); } }, diff --git a/user-profile-dialog.html b/user-profile-dialog.html index 68f81fb..44a4cbd 100644 --- a/user-profile-dialog.html +++ b/user-profile-dialog.html @@ -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> @@ -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);