better acme ux (#2820)

* better acme ux

* fix patching arrays... again

---------

Co-authored-by: Aiden McClelland <me@drbonez.dev>
This commit is contained in:
Matt Hill
2025-01-27 11:40:26 -07:00
committed by GitHub
parent e28fa26c43
commit e8d727c07a
7 changed files with 149 additions and 90 deletions

View File

@@ -1064,7 +1064,7 @@ export class MockApiService extends ApiService {
op: PatchOp.ADD,
path: `/serverInfo/acme`,
value: {
[toAcmeUrl(params.provider)]: { contact: [params.contact] },
[toAcmeUrl(params.provider)]: { contact: params.contact },
},
},
]

View File

@@ -65,7 +65,7 @@ export const mockPatchData: DataModel = {
},
},
acme: {
[Object.keys(knownACME)[0]]: {
[knownACME[0].url]: {
contact: ['mailto:support@start9.com'],
},
},