sajaniemi_variable_dataset_large / pool /shard007 /JavaScript /0044068_report-message.controller.js
Pendigard's picture
Upload folder using huggingface_hub (part 83)
b3787d8 verified
Raw History Blame Contribute Delete
495 Bytes
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);
};
}
]