refs #6067 feat(account_basicData): use vnUser/preview
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2023-09-21 15:06:14 +02:00
parent 3b90d7e5e5
commit a78348f2de
2 changed files with 15 additions and 6 deletions

View File

@ -1,9 +1,11 @@
<mg-ajax path="VnUsers/{{post.params.id}}" options="vnPost"></mg-ajax>
<vn-watcher
vn-id="watcher"
url="VnUsers"
url="VnUsers/preview"
data="$ctrl.user"
id-value="$ctrl.$params.id"
form="form">
where="{id: $ctrl.$params.id}"
form="form"
save="post">
</vn-watcher>
<form
name="form"

View File

@ -2,6 +2,13 @@ import ngModule from '../module';
import Section from 'salix/components/section';
export default class Controller extends Section {
set user(value) {
this._user = value;
console.log(value);
}
get user() {
return this._user;
}
$onInit() {
if (this.$params.emailConfirmed)
this.vnApp.showSuccess(this.$t('Email verified successfully!'));