Fix error response message display
This commit is contained in:
@@ -48,6 +48,7 @@ export default DS.JSONAPIAdapter.extend DataAdapterMixin,
|
||||
#application_route.transitionTo('login')
|
||||
else
|
||||
if typeof(payload?.error) is 'string'
|
||||
application_route = Ember.getOwner(@).lookup('route:application')
|
||||
application_route.set 'router.globals.flash_message', payload.error
|
||||
@_super arguments...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user