Try to bypass cache when using Download Profile Now button. Fix #886.

This commit is contained in:
FelisCatus 2016-10-25 01:17:18 -04:00
parent fcb063a464
commit 7b0a9e9333
2 changed files with 3 additions and 3 deletions

View File

@ -81,8 +81,8 @@ angular.module('omegaTarget', []).factory 'omegaTarget', ($q) ->
callBackground('patch', patch).then omegaTarget.refresh
resetOptions: (opt) ->
callBackground('reset', opt).then omegaTarget.refresh
updateProfile: (name) ->
callBackground('updateProfile', name).then((results) ->
updateProfile: (name, opt_bypass_cache) ->
callBackground('updateProfile', name, opt_bypass_cache).then((results) ->
for own key, value of results
results[key] = decodeError(value)
results

View File

@ -223,7 +223,7 @@ angular.module('omega').controller 'MasterCtrl', ($scope, $rootScope, $window,
if not profile.builtin
$scope.updatingProfile[profile.name] = true
omegaTarget.updateProfile(name).then((results) ->
omegaTarget.updateProfile(name, 'bypass_cache').then((results) ->
success = 0
error = 0
for own profileName, result of results