Skip to content

Commit

Permalink
#114 Fix redirection after migration success
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jul 9, 2018
1 parent 4555bf3 commit dc5a87a
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions www/src/app/core/services/common/UserService.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,9 @@ export default class UserService {
}

query(config) {
let defer = this.$q.defer();

this.$http.post(`./api/user/_search`, config).then(response => {
defer.resolve(response.data);
});

return defer.promise;
return this.$http.post(`./api/user/_search`, config)
.then(response => this.$q.resolve(response.data))
.catch(err => this.$q.reject(err));
}

get(user) {
Expand Down Expand Up @@ -128,12 +124,10 @@ export default class UserService {

autoComplete(query) {
return this.list({
_and: [
{
_and: [{
status: 'Ok'
}
]
})
}]
})
.then(data =>
lo.map(data, user => ({
label: user.name,
Expand Down Expand Up @@ -194,4 +188,4 @@ export default class UserService {

return modal.result;
}
}
}

0 comments on commit dc5a87a

Please sign in to comment.