scripts/apps/authoring/versioning/versioning.ts
import {gettext} from 'core/utils';
angular.module('superdesk.apps.authoring.versioning', [])
.config(['authoringWidgetsProvider', function(authoringWidgetsProvider) {
authoringWidgetsProvider
.widget('versioning', {
icon: 'history',
label: gettext('Versions') + '/' + gettext('History'),
removeHeader: true,
template: 'scripts/apps/authoring/versioning/views/versioning.html',
order: 4,
side: 'right',
display: {
authoring: true,
packages: true,
killedItem: true,
legalArchive: true,
archived: false,
picture: true,
personal: true,
},
afterClose: function(scope) {
if (scope && typeof scope.closePreview === 'function' && !scope._editable) {
scope.closePreview();
}
},
});
}]);