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:
parent
646094f210
commit
730084425e
@ -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
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user