Force refresh on physical button press
This commit is contained in:
@@ -94,7 +94,7 @@ angular.module('app')
|
|||||||
} else {
|
} else {
|
||||||
this.syncUpdated();
|
this.syncUpdated();
|
||||||
}
|
}
|
||||||
}, null, "refreshData");
|
}, {force: true}, "refreshData");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.syncUpdated = function() {
|
this.syncUpdated = function() {
|
||||||
|
|||||||
@@ -203,7 +203,9 @@ class SyncManager {
|
|||||||
|
|
||||||
var allDirtyItems = this.modelManager.getDirtyItems();
|
var allDirtyItems = this.modelManager.getDirtyItems();
|
||||||
|
|
||||||
if(this.syncStatus.syncOpInProgress) {
|
// When a user hits the physical refresh button, we want to force refresh, in case
|
||||||
|
// the sync engine is stuck in some inProgress loop.
|
||||||
|
if(this.syncStatus.syncOpInProgress && !options.force) {
|
||||||
this.repeatOnCompletion = true;
|
this.repeatOnCompletion = true;
|
||||||
if(callback) {
|
if(callback) {
|
||||||
this.queuedCallbacks.push(callback);
|
this.queuedCallbacks.push(callback);
|
||||||
|
|||||||
Reference in New Issue
Block a user