Only refresh the individual app that is being managed
This commit is contained in:
@@ -165,7 +165,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
|
||||
|
||||
$scope.appConfigure.busy = false;
|
||||
|
||||
Client.refreshInstalledApps(); // reflect the new app state immediately
|
||||
Client.refreshAppCache($scope.appConfigure.app.id); // reflect the new app state immediately
|
||||
|
||||
$('#appConfigureModal').modal('hide');
|
||||
|
||||
@@ -220,7 +220,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
|
||||
}
|
||||
|
||||
// reflect the new app state immediately
|
||||
Client.refreshInstalledApps(waitForBackupFinish);
|
||||
Client.refreshAppCache($scope.appRestore.app.id, waitForBackupFinish);
|
||||
});
|
||||
},
|
||||
|
||||
@@ -234,7 +234,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
|
||||
backupId: $scope.appRestore.selectedBackup.id
|
||||
};
|
||||
|
||||
Client.cloneApp($scope.appRestore.app.id, data, function (error) {
|
||||
Client.cloneApp($scope.appRestore.app.id, data, function (error, clonedApp) {
|
||||
$scope.appRestore.busy = false;
|
||||
|
||||
if (error) {
|
||||
@@ -251,7 +251,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
|
||||
$('#appRestoreModal').modal('hide');
|
||||
}
|
||||
|
||||
Client.refreshInstalledApps(); // reflect the new app state immediately
|
||||
Client.refreshAppCache(clonedApp.id); // reflect the new app state immediately
|
||||
});
|
||||
},
|
||||
|
||||
@@ -303,7 +303,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
|
||||
|
||||
$scope.appRestore.busy = false;
|
||||
|
||||
Client.refreshInstalledApps(); // reflect the new app state immediately
|
||||
Client.refreshAppCache($scope.appRestore.app.id); // reflect the new app state immediately
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -495,7 +495,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
|
||||
|
||||
$scope.appUninstall.busy = false;
|
||||
|
||||
Client.refreshInstalledApps(); // reflect the new app state immediately
|
||||
Client.refreshAppCache($scope.appUninstall.app.id); // reflect the new app state immediately
|
||||
});
|
||||
};
|
||||
|
||||
@@ -521,7 +521,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
|
||||
|
||||
$scope.appUpdate.busy = false;
|
||||
|
||||
Client.refreshInstalledApps(); // reflect the new app state immediately
|
||||
Client.refreshAppCache($scope.appUpdate.app.id); // reflect the new app state immediately
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user