Skip to content

Commit bcbc98c

Browse files
committed
impl: hide configurable fallback if signature verification is disabled
The main plugin screen has a quick shortcut for setting whether the user wants to fallback on releases.coder.com for signatures if they are not provided by the main deployment. This checkbox should not be visible if the user wants to disable signature verification altogether. To make things more consistent with Coder Gateway, the fallback setting is always displayed if signature verification is enabled, we no longer display it only once in the main page.
1 parent 7559bef commit bcbc98c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/kotlin/com/coder/toolbox/views/DeploymentUrlStep.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.coder.toolbox.views
22

33
import com.coder.toolbox.CoderToolboxContext
4-
import com.coder.toolbox.settings.SignatureFallbackStrategy
54
import com.coder.toolbox.util.WebUrlValidationResult.Invalid
65
import com.coder.toolbox.util.toURL
76
import com.coder.toolbox.util.validateStrictWebUrl
@@ -41,7 +40,7 @@ class DeploymentUrlStep(
4140

4241
override val panel: RowGroup
4342
get() {
44-
if (context.settingsStore.fallbackOnCoderForSignatures == SignatureFallbackStrategy.NOT_CONFIGURED) {
43+
if (!context.settingsStore.disableSignatureVerification) {
4544
return RowGroup(
4645
RowGroup.RowField(urlField),
4746
RowGroup.RowField(emptyLine),

0 commit comments

Comments
 (0)