You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7266888
Browse filesBrowse the repository at this point in the historyBrowse files
// Paths are typed in for other certificates, so a pasted certificate can be
24
+
// saved and a file already on disk can be referenced in place.
25
+
const editsPaths =computed(() =>!props.managed)
26
+
27
+
function pathHelp(error:string|undefined, kind:string, wrongFile:string) {
28
+
if (!error)
29
+
return''
30
+
if (error.includes('required'))
31
+
return$gettext('This field is required')
32
+
returnerror.includes(kind) ?wrongFile:''
33
+
}
34
+
35
+
const certPathHelp =computed(() =>pathHelp(props.errors?.ssl_certificate_path, 'certificate_path', $gettext('The path exists, but the file is not a certificate')))
36
+
const keyPathHelp =computed(() =>pathHelp(props.errors?.ssl_certificate_key_path, 'privatekey_path', $gettext('The path exists, but the file is not a private key')))
0 commit comments