Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class="link-btn-no-padding"
styleClass="text-left"
link
[label]="submission().title"
[label]="submission().title | fixSpecialChar"
(onClick)="selected.emit()"
/>
@for (action of showAll ? submission().actions : submission().actions.slice(0, limitValue); track $index) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { IconComponent } from '@osf/shared/components/icon/icon.component';
import { TruncatedTextComponent } from '@osf/shared/components/truncated-text/truncated-text.component';
import { StopPropagationDirective } from '@osf/shared/directives/stop-propagation.directive';
import { DateAgoPipe } from '@osf/shared/pipes/date-ago.pipe';
import { FixSpecialCharPipe } from '@osf/shared/pipes/fix-special-char.pipe';

import { PREPRINT_ACTION_LABEL, ReviewStatusIcon } from '../../constants';
import { ActionStatus, SubmissionReviewStatus } from '../../enums';
Expand All @@ -29,6 +30,7 @@ import { PreprintSubmissionModel, PreprintWithdrawalSubmission } from '../../mod
AccordionContent,
ContributorsListComponent,
StopPropagationDirective,
FixSpecialCharPipe,
],
templateUrl: './preprint-submission-item.component.html',
styleUrl: './preprint-submission-item.component.scss',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ export class PreprintSubmissionsComponent implements OnInit {
}

changeReviewStatus(value: SubmissionReviewStatus): void {
if (!value) return;

this.selectedReviewOption.set(value);
this.router.navigate([], {
relativeTo: this.route,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export class PreprintWithdrawalSubmissionsComponent implements OnInit {
}

changeReviewStatus(value: SubmissionReviewStatus): void {
if (!value) return;

this.selectedReviewOption.set(value);
this.router.navigate([], {
relativeTo: this.route,
Expand All @@ -118,7 +120,9 @@ export class PreprintWithdrawalSubmissionsComponent implements OnInit {

navigateToPreprint(item: PreprintWithdrawalSubmission) {
const url = this.router.serializeUrl(
this.router.createUrlTree(['/preprints/', this.providerId(), item.id], { queryParams: { mode: 'moderator' } })
this.router.createUrlTree(['/preprints/', this.providerId(), item.preprintId], {
queryParams: { mode: 'moderator' },
})
);

window.open(url, '_blank');
Expand Down