ng-disabled vn-textfield

This commit is contained in:
Vicente Falco 2017-05-17 14:04:02 +02:00
parent 39f5f55714
commit 5f9160c172
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@
name="*[name]*"
ng-model="*[model]*"
vn-validation="*[rule]*"
ng-disabled="*[disable]*"
*[enabled]*/>
<button type="button" class="mdl-chip__action" title="Clear text">
<i class="material-icons">clear</i>

View File

@ -22,6 +22,7 @@ module.exports = function(Client) {
if(this.payMethod && !this.salesPerson) err();
};
Client.validatesLengthOf('iban', {allowNull: true, min: 23, max: 23});
// Hooks
Client.observe('before save', function(ctx, next) {