fix: support MongoDB Atlas SRV connections in form mode
Add an "SRV (MongoDB Atlas)" toggle in the MongoDB connection form. When enabled, the backend uses mongodb+srv:// scheme and omits the port, matching the behavior of pasting a mongodb+srv:// URL directly.
This commit is contained in:
1 parent
594077fd84
commit
01c8072d97
2 files changed
+17
-4
No files matched your search
@@ -2145,7 +2145,14 @@ function openExternalUrl(url: string) {
|
||||
<div class="grid grid-cols-4 items-center gap-4">
|
||||
<Label class="text-right">{{ t("connection.host") }}</Label>
|
||||
<Input v-model="form.host" class="col-span-2" />
|
||||
<Input v-model.number="form.port" type="number" class="col-span-1" />
|
||||
<Input v-model.number="form.port" type="number" class="col-span-1" :disabled="form.ssl" />
|
||||
</div>
|
||||
<div class="grid grid-cols-4 items-center gap-4">
|
||||
<span />
|
||||
<label class="col-span-3 flex items-center gap-2 text-sm">
|
||||
<input type="checkbox" v-model="form.ssl" class="mr-0" />
|
||||
<span>SRV (MongoDB Atlas)</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="grid grid-cols-4 items-center gap-4">
|
||||
<Label class="text-right">{{ t("connection.user") }}</Label>
|
||||
|
||||
Reference in new issue
Block a user