fixed config sync host URL

上级 646094f2
...@@ -15,7 +15,7 @@ ul.nav-tabs(ngbNav, #nav='ngbNav') ...@@ -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 { ...@@ -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)
}
}
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册