scripts/apps/packaging/controllers/PackagingController.ts
import {IPackagesService} from 'types/Services/Packages';
PackagingController.$inject = ['$scope', 'item', 'packages', 'api', 'modal', 'notify', 'superdesk'];
export function PackagingController($scope, item, packages: IPackagesService, api, modal, notify, superdesk) {
$scope.origItem = item;
$scope.action = 'edit';
$scope.lock = function() {
superdesk.intent('author', 'package', item);
};
// Highlights related functionality
$scope.highlight = !!item.highlight;
}