Skip to content

Commit

Permalink
updates buggy unlockSession condition and error message
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyanshdwivedi committed May 19, 2019
1 parent 8b33a92 commit ad01219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/events/view/sessions/list.js
Expand Up @@ -94,11 +94,11 @@ export default Controller.extend({
});
},
unlockSession(session) {
session.set('isLocked', true);
session.set('isLocked', false);
this.set('isLoading', true);
session.save()
.then(() => {
this.notify.success(this.get('l10n').t('Session has been locked successfully.'));
this.notify.success(this.get('l10n').t('Session has been unlocked successfully.'));
this.send('refreshRoute');
})
.catch(() => {
Expand Down

0 comments on commit ad01219

Please sign in to comment.