File size: 495 Bytes
b3787d8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ReportMessageController = [
'$scope',
'$mdDialog',
function($scope, $mdDialog) {
$scope.report = {
reason: '',
typeId: '',
category: '',
description: ''
};
$scope.hide = function() {
$mdDialog.hide();
};
$scope.cancel = function() {
$mdDialog.cancel();
};
$scope.save = function() {
if (!$scope.report || s.isBlank($scope.report.reason)) {
return;
}
$mdDialog.hide($scope.report);
};
}
]
|