Skip to content

Usenet streaming with a WebDAV server and a SABnzbd-compatible API

C#

Updated arr connection button-label to 'Test Conn'.

nzbdav-devd1dfe04d070f
diff --git a/frontend/app/routes/settings/arrs/arrs.module.css b/frontend/app/routes/settings/arrs/arrs.module.css
index e30a780b..69eb35cc 100644
--- a/frontend/app/routes/settings/arrs/arrs.module.css
+++ b/frontend/app/routes/settings/arrs/arrs.module.css
@@ -90,4 +90,6 @@
.testButton {
white-space: nowrap;
+ color: white;
+ font-size: 14px;
}
\ No newline at end of file
diff --git a/frontend/app/routes/settings/arrs/arrs.tsx b/frontend/app/routes/settings/arrs/arrs.tsx
index 16e818c8..57227888 100644
--- a/frontend/app/routes/settings/arrs/arrs.tsx
+++ b/frontend/app/routes/settings/arrs/arrs.tsx
@@ -315,10 +315,12 @@ function InstanceForm({ instance, index, type, onUpdate, onRemove }: InstanceFor
connectionState === 'testing' ? (
<Spinner animation="border" size="sm" />
) : connectionState === 'success' ? (
- <span style={{ color: 'white' }}>✓</span>
+ '✓'
) : connectionState === 'error' ? (
- <span style={{ color: 'white' }}>✗</span>
- ) : ('?')
+ '✗'
+ ) : (
+ 'Test Conn'
+ )
}
</Button>
)}