scripts/apps/archive/directives/MediaPreview.ts
Function MediaPreview
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function MediaPreview(api, $rootScope, desks, superdesk, content, storage) {
return {
template: require('../views/preview.html'),
link: function(scope, elem) {
const PREVIEW_HEADER_STATE = 'item_preview:header_state';
Function link
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, elem) {
const PREVIEW_HEADER_STATE = 'item_preview:header_state';
const setSubjectPreviewFields = () => {
scope.subjectPreviewFields = content.previewFields(scope.editor, scope.fields)
Function MediaPreview
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export function MediaPreview(api, $rootScope, desks, superdesk, content, storage) {