mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
License key workflow improved
Co-Authored-By: Saul S <sauls8t@users.noreply.github.com>
This commit is contained in:
parent
27fde0dac8
commit
30856433f8
6 changed files with 14 additions and 25 deletions
|
@ -17,7 +17,8 @@ import Component from '@ember/component';
|
|||
|
||||
export default Component.extend(Notifier, {
|
||||
appMeta: service(),
|
||||
LicenseError: empty('model.license'),
|
||||
global: service(),
|
||||
LicenseError: empty('license'),
|
||||
changelog: '',
|
||||
|
||||
init() {
|
||||
|
@ -38,7 +39,8 @@ export default Component.extend(Notifier, {
|
|||
actions: {
|
||||
saveLicense() {
|
||||
this.showWait();
|
||||
this.get('saveLicense')().then(() => {
|
||||
|
||||
this.get('global').saveLicense(this.get('license')).then(() => {
|
||||
this.showDone();
|
||||
window.location.reload();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue