mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-11 22:15:58 +08:00
More fixes
This commit is contained in:
parent
87b5f76705
commit
fe77149f9f
2 changed files with 26 additions and 16 deletions
|
@ -328,6 +328,7 @@ angular.module('passmanApp')
|
||||||
console.log(data);
|
console.log(data);
|
||||||
}).then(function(data){
|
}).then(function(data){
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
//@TODO Update revisions with new key (async)
|
//@TODO Update revisions with new key (async)
|
||||||
|
|
|
@ -249,28 +249,37 @@ angular.module('passmanApp')
|
||||||
this.new_password = angular.copy(new_password);
|
this.new_password = angular.copy(new_password);
|
||||||
this.promises = 0;
|
this.promises = 0;
|
||||||
|
|
||||||
(new C_Promise(promise_credential_update.bind(this))).progress(function(data){
|
var master_promise = this;
|
||||||
this.call_progress(data);
|
|
||||||
|
var password_data = function(){
|
||||||
|
this.old_password = master_promise.old_password;
|
||||||
|
this.new_password = master_promise.new_password;
|
||||||
|
this.plain_credential = master_promise.plain_credential;
|
||||||
|
};
|
||||||
|
|
||||||
|
(new C_Promise(promise_credential_update.bind(new password_data()))).progress(function(data){
|
||||||
|
master_promise.call_progress(data);
|
||||||
}).then(function(data){
|
}).then(function(data){
|
||||||
this.plain_credential = data;
|
master_promise.plain_credential = data;
|
||||||
this.promises ++;
|
master_promise.promises ++;
|
||||||
(new C_Promise(promise_files_update.bind(this))).progress(function(data){
|
(new C_Promise(promise_files_update.bind(new password_data()))).progress(function(data){
|
||||||
this.call_progress(data);
|
master_promise.call_progress(data);
|
||||||
}).then(function(data){
|
}).then(function(data){
|
||||||
this.promises --;
|
master_promise.promises --;
|
||||||
if (this.promises == 0){
|
if (master_promise.promises == 0){
|
||||||
this.call_then("All done");
|
master_promise.call_then("All done");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.promises ++;
|
|
||||||
(new C_Promise(promise_revisions_update.bind(this))).progress(function(data){
|
master_promise.promises ++;
|
||||||
this.call_progress(data);
|
(new C_Promise(promise_revisions_update.bind(new password_data()))).progress(function(data){
|
||||||
|
master_promise.call_progress(data);
|
||||||
}).then(function(data){
|
}).then(function(data){
|
||||||
this.promises --;
|
master_promise.promises --;
|
||||||
if (this.promises == 0){
|
if (master_promise.promises == 0){
|
||||||
this.call_then("All done");
|
master_promise.call_then("All done");
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue