2020-03-09 08:00:03 +00:00
|
|
|
import ngModule from '../module';
|
|
|
|
import Section from 'salix/components/section';
|
|
|
|
|
|
|
|
export default class Controller extends Section {
|
2023-09-21 13:06:14 +00:00
|
|
|
set user(value) {
|
|
|
|
this._user = value;
|
|
|
|
console.log(value);
|
|
|
|
}
|
|
|
|
get user() {
|
|
|
|
return this._user;
|
|
|
|
}
|
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'
|
|
|
|
}
|
|
|
|
});
|