superdesk/superdesk-client-core

View on GitHub
scripts/apps/packaging/controllers/PackagingController.ts

Summary

Maintainability
A
50 mins
Test Coverage
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;
}