mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
download cert from base 64
This commit is contained in:
committed by
Aiden McClelland
parent
1cca7942ae
commit
cc957beacc
@@ -106,7 +106,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- cert elem -->
|
<!-- cert elem -->
|
||||||
<a hidden id="install-cert" href="/public/eos/local.crt" download="embassy.crt"></a>
|
<a hidden id="install-cert" download="embassy.crt"></a>
|
||||||
|
|
||||||
<!-- download elem -->
|
<!-- download elem -->
|
||||||
<div hidden id="downloadable">
|
<div hidden id="downloadable">
|
||||||
|
|||||||
@@ -17,6 +17,10 @@ export class SuccessPage {
|
|||||||
public readonly stateService: StateService,
|
public readonly stateService: StateService,
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
|
ngAfterViewInit () {
|
||||||
|
document.getElementById('install-cert').setAttribute('href', 'data:application/x-x509-ca-cert;base64,' + encodeURIComponent(this.stateService.cert))
|
||||||
|
}
|
||||||
|
|
||||||
async copy (address: string): Promise<void> {
|
async copy (address: string): Promise<void> {
|
||||||
const success = await this.copyToClipboard(address)
|
const success = await this.copyToClipboard(address)
|
||||||
const message = success ? 'copied to clipboard!' : 'failed to copy'
|
const message = success ? 'copied to clipboard!' : 'failed to copy'
|
||||||
|
|||||||
Reference in New Issue
Block a user