mirror of https://github.com/nextcloud/contacts
19 lines
524 B
JavaScript
19 lines
524 B
JavaScript
angular.module('contactsApp')
|
|
.controller('importscreenCtrl', function($scope, ImportService) {
|
|
var ctrl = this;
|
|
|
|
ctrl.t = {
|
|
importingTo : t('contacts', 'Importing into'),
|
|
selectAddressbook : t('contacts', 'Select your addressbook')
|
|
};
|
|
|
|
// Broadcast update
|
|
$scope.$on('importing', function () {
|
|
ctrl.selectedAddressBook = ImportService.selectedAddressBook;
|
|
ctrl.importedUser = ImportService.importedUser;
|
|
ctrl.importing = ImportService.importing;
|
|
ctrl.importPercent = ImportService.importPercent;
|
|
});
|
|
|
|
});
|