summaryrefslogtreecommitdiffstats
path: root/js/components/importScreen/importScreen_controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/importScreen/importScreen_controller.js')
-rw-r--r--js/components/importScreen/importScreen_controller.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/components/importScreen/importScreen_controller.js b/js/components/importScreen/importScreen_controller.js
new file mode 100644
index 00000000..c5dd1c0e
--- /dev/null
+++ b/js/components/importScreen/importScreen_controller.js
@@ -0,0 +1,18 @@
+angular.module('contactsApp')
+.controller('importscreenCtrl', function($scope, ImportService) {
+ var ctrl = this;
+
+ ctrl.t = {
+ importingTo : t('contacts', 'Currently importing into'),
+ importingText : t('contacts', 'Importing...'),
+ selectAddressbook : t('contacts', 'Select your addressbook')
+ };
+
+ // Broadcast update
+ $scope.$on('importing', function () {
+ ctrl.selectedAddressBook = ImportService.selectedAddressBook;
+ ctrl.importing = ImportService.importing;
+ ctrl.importPercent = ImportService.importPercent;
+ });
+
+});