-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Release v1.6.0
- Loading branch information
Showing
73 changed files
with
1,673 additions
and
1,335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ export default class extends Component { | |
return this.data.attendees; | ||
} | ||
|
||
@or('data.amount', 'data.isBillingEnabled') | ||
@or('event.isBillingInfoMandatory', 'data.isBillingEnabled') | ||
showBillingInfo; | ||
|
||
@computed('[email protected]') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,42 @@ | ||
import Controller from '@ember/controller'; | ||
import { action } from '@ember/object'; | ||
|
||
export default Controller.extend({ | ||
actions: { | ||
changePassword(passwordData) { | ||
this.set('isLoading', true); | ||
let payload = { | ||
'data': { | ||
'old-password' : passwordData.passwordCurrent, | ||
'new-password' : passwordData.passwordNew | ||
} | ||
}; | ||
this.loader | ||
.post('/auth/change-password', payload) | ||
.then(() => { | ||
this.notify.success(this.l10n.t('Password updated successfully'), | ||
export default class extends Controller { | ||
|
||
@action | ||
changePassword(passwordData) { | ||
this.set('isLoading', true); | ||
let payload = { | ||
'data': { | ||
'old-password' : passwordData.passwordCurrent, | ||
'new-password' : passwordData.passwordNew | ||
} | ||
}; | ||
this.loader | ||
.post('/auth/change-password', payload) | ||
.then(() => { | ||
this.notify.success(this.l10n.t('Password updated successfully'), | ||
{ | ||
id: 'pass_upd_succ' | ||
}); | ||
}) | ||
.catch(error => { | ||
if (error.errors) { | ||
this.notify.error(this.l10n.t(`${error.errors[0].detail}`), | ||
{ | ||
id: 'err_pass_ser' | ||
}); | ||
} else { | ||
this.notify.error(this.l10n.t('Unexpected error. Password did not change.'), | ||
{ | ||
id: 'pass_upd_succ' | ||
id: 'err_unex_pass' | ||
}); | ||
}) | ||
.catch(error => { | ||
if (error.errors) { | ||
this.notify.error(this.l10n.t(`${error.errors[0].detail}`), | ||
{ | ||
id: 'err_pass_ser' | ||
}); | ||
} else { | ||
this.notify.error(this.l10n.t('Unexpected error. Password did not change.'), | ||
{ | ||
id: 'err_unex_pass' | ||
}); | ||
} | ||
}) | ||
.finally(() => { | ||
this.set('isLoading', false); | ||
this.setProperties({ 'passwordCurrent': '', 'passwordNew': '', 'passwordRepeat': '' }); | ||
}); | ||
} | ||
} | ||
}) | ||
.finally(() => { | ||
this.set('isLoading', false); | ||
this.setProperties({ 'passwordCurrent': '', 'passwordNew': '', 'passwordRepeat': '' }); | ||
}); | ||
} | ||
}); | ||
} | ||
|
Oops, something went wrong.