refs #5468 feat: checkbox 'activo' marcado por defecto
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2023-05-23 10:04:31 +02:00
parent 6135a8f576
commit cd244daf84
3 changed files with 6 additions and 3 deletions

View File

@ -56,8 +56,6 @@ module.exports = function(Self) {
}
try {
if (!args.active) args.active = false;
delete args.ctx; // Remove unwanted properties
const newUser = await models.VnUser.create(args, myOptions);

View File

@ -1,7 +1,7 @@
import selectors from '../../helpers/selectors.js';
import getBrowser from '../../helpers/puppeteer';
fdescribe('Account create and basic data path', () => {
describe('Account create and basic data path', () => {
let browser;
let page;

View File

@ -2,6 +2,11 @@ import ngModule from '../module';
import Section from 'salix/components/section';
export default class Controller extends Section {
constructor($element, $) {
super($element, $);
this.user = {active: true};
}
onSubmit() {
return this.$.watcher.submit().then(res => {
this.$state.go('account.card.basicData', {id: res.data.id});