corregido problema de elementos iguales
This commit is contained in:
parent
b9e4f8fc92
commit
0dcb581c78
|
@ -17,7 +17,6 @@ export const COMPONENT = {
|
|||
this.$onChanges = function (changes) {
|
||||
if(this.client){
|
||||
this.clientOld = copyObject(this.client);
|
||||
this.client.navigate = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -30,14 +29,12 @@ export const COMPONENT = {
|
|||
);
|
||||
|
||||
function callback(transition) {
|
||||
if(!equalsObject(self.client, self.clientOld) && !self.client.navigate){
|
||||
if(!equalsObject(self.client, self.clientOld)){
|
||||
self.state = transition.to().name;
|
||||
var dialog = document.querySelector('dialog');
|
||||
dialog.showModal();
|
||||
return false;
|
||||
}
|
||||
else
|
||||
self.client = copyObject(self.clientOld);
|
||||
}
|
||||
|
||||
this.submit = function() {
|
||||
|
|
Loading…
Reference in New Issue