This commit is contained in:
annampak 2017-10-17 13:16:48 +03:00
parent 2f7d0a2e73
commit b503ca6901
1 changed files with 10 additions and 1 deletions

View File

@ -88,7 +88,7 @@ export class DynamicFormComponent implements OnInit {
grp.groupFields.forEach((fld) => {
if (fld.visible == true || fld.visible == "true")
count++;
if (fld.value != undefined)
if (fld.value != undefined && fld.value !=" ")
countDirtyValues++;
});
});
@ -155,6 +155,15 @@ export class DynamicFormComponent implements OnInit {
//this.dataModel.groups = this.dataModel.groups.slice(this.pager.startIndex, this.pager.endIndex + 1);
}
signOut2() {debugger;
    var auth2 = gapi.auth2.getAuthInstance();
    auth2.signOut().then(function () {
      console.log('User signed out.');
localStorage.removeItem('currentUser');
this.tokenService.setToken('token',null);
    });
  }
onValueChanged(data?: any) {
debugger;
if (!this.form) { return; }