marketplace url in server.update

This commit is contained in:
Drew Ansbacher
2022-02-10 10:28:21 -07:00
committed by Aiden McClelland
parent 1d8512e1dd
commit b66720dfd0
4 changed files with 138 additions and 92 deletions

View File

@@ -17,6 +17,7 @@ import { WizardBaker } from 'src/app/components/install-wizard/prebaked-wizards'
import { wizardModal } from 'src/app/components/install-wizard/install-wizard.component'
import { exists, isEmptyObject } from 'src/app/util/misc.util'
import { EOSService } from 'src/app/services/eos.service'
import { ConfigService } from 'src/app/services/config.service'
@Component({
selector: 'server-show',
@@ -36,6 +37,7 @@ export class ServerShowPage {
private readonly embassyApi: ApiService,
private readonly navCtrl: NavController,
private readonly route: ActivatedRoute,
private readonly config: ConfigService,
public readonly eosService: EOSService,
public readonly patch: PatchDbService,
) {}
@@ -153,7 +155,9 @@ export class ServerShowPage {
await loader.present()
try {
await this.embassyApi.restartServer({})
await this.embassyApi.restartServer({
'marketplace-url': this.config.marketplace.url,
})
} catch (e) {
this.errToast.present(e)
} finally {