mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-27 14:59:57 +00: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()',
|
(ngModelChange)='config.save()',
|
||||||
)
|
)
|
||||||
.input-group-append(*ngIf='config.store.configSync.host')
|
.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
|
i.fas.fa-external-link-alt
|
||||||
|
|
||||||
.form-line
|
.form-line
|
||||||
|
@ -106,4 +106,12 @@ export class ConfigSyncSettingsTabComponent extends BaseComponent {
|
|||||||
isActiveConfig (c: Config) {
|
isActiveConfig (c: Config) {
|
||||||
return c.id === this.config.store.configSync.configID
|
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…
x
Reference in New Issue
Block a user