This commit is contained in:
parent
d584ee2c03
commit
56ff5670dd
@ -1,12 +1,13 @@
|
||||
$Published: "0";
|
||||
$Rejected: "1";
|
||||
$Publishing: "2";
|
||||
$Validated: "3";
|
||||
$UnderConstruction: "0";
|
||||
$Submitted: "1";
|
||||
$ChangesRequested: "2";
|
||||
$Accepted: "3";
|
||||
$Validating: "4";
|
||||
$Accepted: "5";
|
||||
$ChangesRequested: "6";
|
||||
$Submitted: "7";
|
||||
$UnderConstruction: "8";
|
||||
$Validated: "5";
|
||||
$Uploading: "6";
|
||||
$Uploaded: "7";
|
||||
$Rejected: "8";
|
||||
$Released: "9";
|
||||
|
||||
.review-status {
|
||||
border-radius: 5px;
|
||||
@ -16,7 +17,7 @@ $UnderConstruction: "8";
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
&[data-review-status="#{$Published}"] {
|
||||
&[data-review-status="#{$Released}"] {
|
||||
background-color: orange;
|
||||
p {
|
||||
color: white;
|
||||
@ -28,7 +29,13 @@ $UnderConstruction: "8";
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
&[data-review-status="#{$Publishing}"] {
|
||||
&[data-review-status="#{$Uploading}"] {
|
||||
background-color: orange;
|
||||
p {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
&[data-review-status="#{$Uploaded}"] {
|
||||
background-color: orange;
|
||||
p {
|
||||
color: white;
|
||||
|
@ -55,7 +55,6 @@ function TitleAndComments(stats: CreatorAndReviewStatus) {
|
||||
<main className="review-info">
|
||||
<div>
|
||||
<h1>{stats.name}</h1>
|
||||
{/* TODO: Fix review status, I think its displaying the wrong information idk */}
|
||||
<aside data-review-status={stats.review} className="review-status">
|
||||
<p>{Review}</p>
|
||||
</aside>
|
||||
|
@ -1,13 +1,14 @@
|
||||
const enum SubmissionStatus {
|
||||
Published,
|
||||
Rejected,
|
||||
Publishing,
|
||||
Validated,
|
||||
Validating,
|
||||
Accepted,
|
||||
ChangesRequested,
|
||||
Submitted,
|
||||
UnderConstruction
|
||||
UnderConstruction = 0,
|
||||
Submitted = 1,
|
||||
ChangesRequested = 2,
|
||||
Accepted = 3,
|
||||
Validating = 4,
|
||||
Validated = 5,
|
||||
Uploading = 6,
|
||||
Uploaded = 7,
|
||||
Rejected = 8,
|
||||
Released = 9,
|
||||
}
|
||||
|
||||
interface SubmissionInfo {
|
||||
@ -26,12 +27,14 @@ interface SubmissionInfo {
|
||||
|
||||
function SubmissionStatusToString(submission_status: SubmissionStatus): string {
|
||||
switch (submission_status) {
|
||||
case SubmissionStatus.Published:
|
||||
return "PUBLISHED"
|
||||
case SubmissionStatus.Released:
|
||||
return "RELEASED"
|
||||
case SubmissionStatus.Rejected:
|
||||
return "REJECTED"
|
||||
case SubmissionStatus.Publishing:
|
||||
return "PUBLISHING"
|
||||
case SubmissionStatus.Uploading:
|
||||
return "UPLOADING"
|
||||
case SubmissionStatus.Uploaded:
|
||||
return "UPLOADED"
|
||||
case SubmissionStatus.Validated:
|
||||
return "VALIDATED"
|
||||
case SubmissionStatus.Validating:
|
||||
|
Loading…
Reference in New Issue
Block a user