Skip to content

Commit

Permalink
RSE-459: Add huskyrc
Browse files Browse the repository at this point in the history
  • Loading branch information
deb1990 committed Oct 17, 2019
1 parent 9df3419 commit 077a5a6
Show file tree
Hide file tree
Showing 4 changed files with 2,219 additions and 2,762 deletions.
5 changes: 5 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hooks": {
"pre-commit": "lint-staged"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@

/**
* Angular JS's link function for the directive civicaseActivityActions
* @param {Object} $scope
* @param {Object} attrs
* @param {Object} element
* @param {Object} caseDetails
*
* @param {object} $scope angular scope
* @param {object} attrs attributes
* @param {object} element element
* @param {object} caseDetails case details service
*/
function civicaseActivityActionsLink ($scope, attrs, element, caseDetails) {
if (caseDetails) {
Expand All @@ -36,6 +37,17 @@

module.controller('civicaseActivityActionsController', civicaseActivityActionsController);

/**
* @param {object} $window window object
* @param {object} $rootScope rootscope
* @param {object} $scope scope
* @param {object} crmApi crm api
* @param {object} getActivityFeedUrl service to get activity feed url
* @param {object} MoveCopyActivityAction move copy action service
* @param {object} TagsActivityAction tags action service
* @param {object} DeleteActivityAction delete activity service
* @param {object} ts ts
*/
function civicaseActivityActionsController ($window, $rootScope, $scope, crmApi, getActivityFeedUrl, MoveCopyActivityAction, TagsActivityAction, DeleteActivityAction, ts) {
$scope.ts = ts;
$scope.getActivityFeedUrl = getActivityFeedUrl;
Expand All @@ -48,7 +60,7 @@
/**
* Print a report for the sent activities
*
* @param {Array} selectedActivities
* @param {Array} selectedActivities selected activities
*/
function printReport (selectedActivities) {
var url = $scope.getPrintActivityUrl(selectedActivities);
Expand All @@ -59,7 +71,8 @@
/**
* Checks if the sent activity is enabled
*
* @param {Object} activity
* @param {object} activity activity
* @returns {boolean} if activity is editable
*/
function isActivityEditable (activity) {
var activityType = CRM.civicase.activityTypes[activity.activity_type_id].name;
Expand Down
Loading

0 comments on commit 077a5a6

Please sign in to comment.