2020-03-09 08:00:03 +00:00
|
|
|
import ngModule from '../module';
|
|
|
|
import Section from 'salix/components/section';
|
|
|
|
|
|
|
|
export default class Controller extends Section {
|
2022-09-26 06:21:58 +00:00
|
|
|
$onInit() {
|
2022-10-17 05:22:22 +00:00
|
|
|
if (this.$params.emailConfirmed)
|
|
|
|
this.vnApp.showSuccess(this.$t('Email verified successfully!'));
|
2022-09-26 06:21:58 +00:00
|
|
|
}
|
|
|
|
|
2020-03-09 08:00:03 +00:00
|
|
|
onSubmit() {
|
|
|
|
this.$.watcher.submit()
|
|
|
|
.then(() => this.card.reload());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ngModule.component('vnUserBasicData', {
|
|
|
|
template: require('./index.html'),
|
|
|
|
controller: Controller,
|
|
|
|
require: {
|
|
|
|
card: '^vnUserCard'
|
|
|
|
}
|
|
|
|
});
|