Skip to content

Commit 84cc97d

Browse files
committed
fix(preprint-details): added create new version for rejected status
1 parent 89bbee5 commit 84cc97d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/app/features/preprints/pages/preprint-details/preprint-details.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ export class PreprintDetailsComponent implements OnInit, OnDestroy {
186186
const preprint = this.preprint();
187187
if (!preprint) return false;
188188

189-
return this.hasAdminAccess() && preprint.datePublished && preprint.isLatestVersion;
189+
const preprintIsRejected = preprint.reviewsState === ReviewsState.Rejected;
190+
191+
return this.hasAdminAccess() && (preprint.datePublished || preprintIsRejected) && preprint.isLatestVersion;
190192
});
191193

192194
editButtonVisible = computed(() => {

0 commit comments

Comments
 (0)