feat(client): update the suggested input for webdav sources

This commit is contained in:
perf3ct 2025-06-17 18:19:34 +00:00
parent 24e7dff9a5
commit eb7f157bbf
1 changed files with 7 additions and 1 deletions

View File

@ -1157,7 +1157,13 @@ const SourcesPage: React.FC = () => {
label="Server URL" label="Server URL"
value={formData.server_url} value={formData.server_url}
onChange={(e) => setFormData({ ...formData, server_url: e.target.value })} onChange={(e) => setFormData({ ...formData, server_url: e.target.value })}
placeholder="https://nextcloud.example.com/remote.php/dav/files/username/" placeholder={
formData.server_type === 'nextcloud'
? "https://nextcloud.example.com/"
: formData.server_type === 'owncloud'
? "https://owncloud.example.com/remote.php/dav/files/username/"
: "https://webdav.example.com/dav/"
}
sx={{ '& .MuiOutlinedInput-root': { borderRadius: 2 } }} sx={{ '& .MuiOutlinedInput-root': { borderRadius: 2 } }}
/> />