Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

improve SCIMModal

Steven Tey3d8bcd2aaa73
diff --git a/apps/web/ui/modals/scim-modal.tsx b/apps/web/ui/modals/scim-modal.tsx
index 859f7828e1..1892cb4eed 100644
--- a/apps/web/ui/modals/scim-modal.tsx
+++ b/apps/web/ui/modals/scim-modal.tsx
@@ -255,10 +255,19 @@ function SCIMModal({
</div>
</div>
)}
+
<Button
- text="Save changes"
+ text={
+ selectedProvider === provider ? "Complete setup" : "Save changes"
+ }
+ type={selectedProvider === provider ? "button" : "submit"}
+ {...(selectedProvider === provider && {
+ onClick: () => {
+ setShowSCIMModal(false);
+ },
+ })}
loading={submitting}
- disabled={!currentProvider || currentProvider.scim === provider}
+ disabled={!currentProvider}
/>
</form>
</div>