mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
more fixes
This commit is contained in:
committed by
Aiden McClelland
parent
2f918c198f
commit
5610ab135b
@@ -17,7 +17,7 @@
|
|||||||
<ng-container *ngIf="!loading && !storageDrives.length">
|
<ng-container *ngIf="!loading && !storageDrives.length">
|
||||||
<h2 color="light">No drives found</h2>
|
<h2 color="light">No drives found</h2>
|
||||||
<p color="light">Please connect an storage drive to your Embassy and refresh the page.</p>
|
<p color="light">Please connect an storage drive to your Embassy and refresh the page.</p>
|
||||||
<ion-button style="margin-top: 25px;" (click)="window.location.reload()" color="light">
|
<ion-button style="margin-top: 25px;" (click)="refresh()" color="light">
|
||||||
Refresh
|
Refresh
|
||||||
</ion-button>
|
</ion-button>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|||||||
@@ -27,6 +27,17 @@ export class EmbassyPage {
|
|||||||
) { }
|
) { }
|
||||||
|
|
||||||
async ngOnInit () {
|
async ngOnInit () {
|
||||||
|
await this.getDrives()
|
||||||
|
}
|
||||||
|
|
||||||
|
async refresh () {
|
||||||
|
this.storageDrives = []
|
||||||
|
this.selectedDrive = null
|
||||||
|
this.loading = true
|
||||||
|
await this.getDrives()
|
||||||
|
}
|
||||||
|
|
||||||
|
async getDrives () {
|
||||||
try {
|
try {
|
||||||
this.storageDrives = await this.apiService.getDrives()
|
this.storageDrives = await this.apiService.getDrives()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@@ -10,11 +10,8 @@ import { StateService } from 'src/app/services/state.service'
|
|||||||
export class SuccessPage {
|
export class SuccessPage {
|
||||||
constructor(
|
constructor(
|
||||||
public stateService: StateService,
|
public stateService: StateService,
|
||||||
private readonly navCtrl: NavController,
|
|
||||||
private toastCtrl: ToastController
|
private toastCtrl: ToastController
|
||||||
) {
|
) { }
|
||||||
this.stateService.torAddress = 'asdfasdfasdf.onion'
|
|
||||||
}
|
|
||||||
|
|
||||||
window = window
|
window = window
|
||||||
|
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ export class HttpService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function RpcError (e: RPCError['error']): void {
|
function RpcError (e: RPCError['error']): void {
|
||||||
|
console.log("error", e)
|
||||||
const { code, message, data } = e
|
const { code, message, data } = e
|
||||||
|
|
||||||
this.code = code
|
this.code = code
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export class StateService {
|
|||||||
'recovery-logicalname': this.recoveryDrive?.logicalname,
|
'recovery-logicalname': this.recoveryDrive?.logicalname,
|
||||||
'recovery-password': this.recoveryPassword
|
'recovery-password': this.recoveryPassword
|
||||||
})
|
})
|
||||||
|
console.log("return", ret)
|
||||||
return { torAddress: ret['tor-address'] }
|
return { torAddress: ret['tor-address'] }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user