fixed config sync host URL

This commit is contained in:
Eugene Pankov
2021-09-02 23:07:16 +02:00
parent 646094f210
commit 730084425e
2 changed files with 9 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ ul.nav-tabs(ngbNav, #nav='ngbNav')
(ngModelChange)='config.save()',
)
.input-group-append(*ngIf='config.store.configSync.host')
button.btn.btn-secondary((click)='platform.openExternal("http://" + config.store.configSync.host)')
button.btn.btn-secondary((click)='openSyncHost()')
i.fas.fa-external-link-alt
.form-line

View File

@@ -106,4 +106,12 @@ export class ConfigSyncSettingsTabComponent extends BaseComponent {
isActiveConfig (c: Config) {
return c.id === this.config.store.configSync.configID
}
openSyncHost () {
if (this.config.store.configSync.host === 'https://api.tabby.sh') {
this.platform.openExternal('https://tabby.sh/app')
} else {
this.platform.openExternal(this.config.store.configSync.host)
}
}
}