Preset: Switch to "Unknown remotes" tab on the Connector window if OnlyAllowPresetRemotes is on

This commit is contained in:
NI
2020-12-26 21:22:52 +08:00
parent b924dd80c9
commit 9b9e6b7f62
4 changed files with 9 additions and 11 deletions

View File

@@ -68,9 +68,7 @@
@updated="tabUpdated"
>
<div id="home-content-wrap">
<h1>
Hi, this is Sshwifty
</h1>
<h1>Hi, this is Sshwifty</h1>
<p>
An Open Source Web SSH Client that enables you to connect to SSH

View File

@@ -138,7 +138,7 @@ export default {
},
data() {
return {
tab: "new",
tab: !this.restrictedToPresets ? "new" : "known",
canSelect: true,
};
},

View File

@@ -112,8 +112,8 @@
</ul>
<div v-if="restrictedToPresets" id="connect-known-list-presets-alert">
The operator has disabled outgoing access to all remote hosts except
those been defined as preset.
The operator has restricted the outgoing connections. You can only
connect to remotes from the pre-defined presets.
</div>
</div>
</div>

View File

@@ -36,17 +36,17 @@ export default {
props: {
tab: {
type: String,
default: "new"
default: "new",
},
knownsLength: {
type: Number,
default: 0
}
default: 0,
},
},
methods: {
switchTab(to) {
this.$emit("switch", to);
}
}
},
},
};
</script>