diff options
Diffstat (limited to 'js/app/controllers/settingscontroller.coffee')
-rw-r--r-- | js/app/controllers/settingscontroller.coffee | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/app/controllers/settingscontroller.coffee b/js/app/controllers/settingscontroller.coffee index a1632a761..ef282c900 100644 --- a/js/app/controllers/settingscontroller.coffee +++ b/js/app/controllers/settingscontroller.coffee @@ -37,4 +37,16 @@ angular.module('News').controller 'SettingsController', console.error error $scope.error = true + + $scope.importGoogleReader = (fileContent) => + $scope.jsonError = false + ShowAll.setShowAll(true) + + try + parsedJSON = JSON.parse(fileContent) + FeedBusinessLayer.importGoogleReader(parsedJSON) + catch error + console.error error + $scope.jsonError = true + ]
\ No newline at end of file |