1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-23 10:32:29 +03:00

fixed config sync host URL

This commit is contained in:
Eugene Pankov 2021-09-02 23:07:16 +02:00
parent 646094f210
commit 730084425e
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
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)
}
}
}