Skip to content

Commit

Permalink
Remove the second 'edit' option for unpublished items. [SDESK-5228] (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
GyanP authored May 27, 2020
1 parent ffb32b1 commit dfc6934
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions scripts/apps/authoring/authoring/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,22 +377,6 @@ angular.module('superdesk.apps.authoring', [
additionalCondition: ['authoring', 'item', (authoring, item) => authoring.itemActions(item).unpublish],
privileges: {unpublish: 1},
})
.activity('edit.unpublished', {
label: gettext('Edit'),
priority: 100,
icon: 'edit-line',
group: 'corrections',
controller: ['data', 'authoringWorkspace', 'api',
(data, authoringWorkspace: AuthoringWorkspaceService, api) => {
api.update('archive', data.item.archive_item || data.item, {state: 'in_progress'})
.then((updated) =>
authoringWorkspace.edit(updated));
},
],
filters: [{action: 'list', type: 'archive'}],
additionalCondition: ['item', (item) => item.state === 'unpublished'],
privileges: {unpublish: 1},
})
;
}])
.config(['apiProvider', function(apiProvider) {
Expand Down

0 comments on commit dfc6934

Please sign in to comment.