mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
download output
This commit is contained in:
committed by
Aiden McClelland
parent
8f7075de34
commit
ba402d018a
@@ -6,7 +6,7 @@
|
||||
<div style="padding-bottom: 32px;">
|
||||
<img src="assets/png/logo.png" style="max-width: 240px;" />
|
||||
</div>
|
||||
<success></success>
|
||||
<success (dl)="download($event)"></success>
|
||||
<ion-card *ngIf="!stateService.embassyLoaded" color="dark">
|
||||
<ion-card-header>
|
||||
<ion-card-title style="font-size: 40px;">Initializing Embassy</ion-card-title>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Component } from '@angular/core'
|
||||
import { NavController } from '@ionic/angular'
|
||||
import { interval, Observable } from 'rxjs'
|
||||
import { finalize, take } from 'rxjs/operators'
|
||||
import { StateService } from 'src/app/services/state.service'
|
||||
@@ -18,7 +17,7 @@ export class InitPage {
|
||||
) { }
|
||||
|
||||
ngOnInit () {
|
||||
this.progress = interval(500)
|
||||
this.progress = interval(130)
|
||||
.pipe(
|
||||
take(101),
|
||||
finalize(() => {
|
||||
|
||||
@@ -29,5 +29,5 @@ a {
|
||||
}
|
||||
|
||||
.hiddenPage {
|
||||
max-height: 0px;
|
||||
display: none;
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from '@angular/core'
|
||||
import { Component, EventEmitter, Output } from '@angular/core'
|
||||
import { ToastController } from '@ionic/angular'
|
||||
import { StateService } from 'src/app/services/state.service'
|
||||
|
||||
@@ -8,6 +8,7 @@ import { StateService } from 'src/app/services/state.service'
|
||||
styleUrls: ['success.page.scss'],
|
||||
})
|
||||
export class SuccessPage {
|
||||
@Output() dl = new EventEmitter()
|
||||
torOpen = true
|
||||
lanOpen = false
|
||||
|
||||
@@ -40,6 +41,10 @@ export class SuccessPage {
|
||||
document.getElementById('install-cert').click()
|
||||
}
|
||||
|
||||
download () {
|
||||
this.dl.emit(null)
|
||||
}
|
||||
|
||||
private async copyToClipboard (str: string): Promise<boolean> {
|
||||
const el = document.createElement('textarea')
|
||||
el.value = str
|
||||
|
||||
Reference in New Issue
Block a user