Skip to content

Commit 987bf5a

Browse files
committed
Don't show interactor secret on compile error
1 parent bf5df07 commit 987bf5a

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/webview/judge/Testcase.svelte

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -70,31 +70,31 @@
7070
<div class="testcase-container">
7171
<TestcaseToolbar {testcase} {onprerun} />
7272
{#if showDetails}
73-
{#if testcase.mode === "interactive"}
74-
<AutoresizeTextarea
75-
bind:value={testcase.interactorSecret}
76-
bind:editing={interactorSecretEditing}
77-
placeholder="Interactor secret..."
78-
variant="interactor-secret"
79-
onexpand={() => handleExpandStdio("INTERACTOR_SECRET")}
80-
onpreedit={() => {
81-
postProviderMessage({
82-
type: "REQUEST_FULL_DATA",
83-
uuid: testcase.uuid,
84-
stdio: "INTERACTOR_SECRET",
85-
});
86-
}}
87-
onsave={handleSaveInteractorSecret}
88-
oncancel={() => {
89-
postProviderMessage({
90-
type: "REQUEST_TRIMMED_DATA",
91-
uuid: testcase.uuid,
92-
stdio: "INTERACTOR_SECRET",
93-
});
94-
}}
95-
/>
96-
{/if}
9773
{#if status !== "CE"}
74+
{#if testcase.mode === "interactive"}
75+
<AutoresizeTextarea
76+
bind:value={testcase.interactorSecret}
77+
bind:editing={interactorSecretEditing}
78+
placeholder="Interactor secret..."
79+
variant="interactor-secret"
80+
onexpand={() => handleExpandStdio("INTERACTOR_SECRET")}
81+
onpreedit={() => {
82+
postProviderMessage({
83+
type: "REQUEST_FULL_DATA",
84+
uuid: testcase.uuid,
85+
stdio: "INTERACTOR_SECRET",
86+
});
87+
}}
88+
onsave={handleSaveInteractorSecret}
89+
oncancel={() => {
90+
postProviderMessage({
91+
type: "REQUEST_TRIMMED_DATA",
92+
uuid: testcase.uuid,
93+
stdio: "INTERACTOR_SECRET",
94+
});
95+
}}
96+
/>
97+
{/if}
9898
<AutoresizeTextarea
9999
bind:value={testcase.stdin}
100100
bind:editing={stdinEditing}

0 commit comments

Comments
 (0)