',
' ',
' error_outline',
' ' + l('An error occured while importing contacts.') + '',
'
',
''
].join(''),
position: 'top right',
hideDelay: 3000
});
}
});
vm.close = function() {
$mdDialog.hide();
};
function filterByExtension(item) {
var isTextFile = item.type.indexOf('text') === 0 ||
/\.(ldif|vcf|vcard)$/.test(item.name);
if (!isTextFile)
$mdToast.show({
template: [
'