mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
account deactivation process
This commit is contained in:
parent
6a9ad7f540
commit
0a64afd6b5
5 changed files with 66 additions and 2 deletions
|
@ -12,9 +12,10 @@
|
|||
import { empty } from '@ember/object/computed';
|
||||
import { inject as service } from '@ember/service';
|
||||
import Notifier from '../../mixins/notifier';
|
||||
import Modals from '../../mixins/modal';
|
||||
import Component from '@ember/component';
|
||||
|
||||
export default Component.extend(Notifier, {
|
||||
export default Component.extend(Notifier, Modals, {
|
||||
appMeta: service(),
|
||||
global: service(),
|
||||
licenseError: empty('license'),
|
||||
|
@ -44,6 +45,13 @@ export default Component.extend(Notifier, {
|
|||
this.showDone();
|
||||
window.location.reload();
|
||||
});
|
||||
},
|
||||
|
||||
onDeactivate() {
|
||||
this.get('global').deactivate().then(() => {
|
||||
this.showDone();
|
||||
this.modalOpen("#deactivation-modal", {"show": true});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue