Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
3 changes: 1 addition & 2 deletions src/services/dashboards/dashboards.svc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,7 @@ angular

org = ImpacMainSvc.config.currentOrganization

unless dashboard.currency?
dashboard.currency = org.currency || 'USD'
dashboard.currency = ImpacMainSvc.config.userData.settings.default_widget_currency || org.currency || 'USD'

data = { dashboard: dashboard }

Expand Down
3 changes: 3 additions & 0 deletions src/services/main/main.svc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ angular
ImpacLinking.getUserData().then(
(user) ->
angular.extend _self.config.userData, user
if user.settings.currencies
_self.config.currencies = user.settings.currencies

$log.info("Impac! - MainSvc: User data loaded (force=#{force}) with sso_session #{_self.config.userData.sso_session}")
deferred.resolve(_self.config.userData)

Expand Down