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