superdesk/superdesk-client-core

View on GitHub
scripts/apps/templates/controllers/TemplateMenuController.ts

Summary

Maintainability
A
0 mins
Test Coverage
TemplateMenuController.$inject = ['$modal'];
export function TemplateMenuController($modal) {
    this.create = createFromItem;
    function createFromItem(item) {
        $modal.open({
            templateUrl: 'scripts/apps/templates/views/create-template.html',
            controller: 'CreateTemplateController',
            controllerAs: 'template',
            resolve: {
                item: function() {
                    return item;
                },
            },
        });
    }
}