Preset: Switch to "Unknown remotes" tab on the Connector window if OnlyAllowPresetRemotes is on
This commit is contained in:
@@ -68,9 +68,7 @@
|
|||||||
@updated="tabUpdated"
|
@updated="tabUpdated"
|
||||||
>
|
>
|
||||||
<div id="home-content-wrap">
|
<div id="home-content-wrap">
|
||||||
<h1>
|
<h1>Hi, this is Sshwifty</h1>
|
||||||
Hi, this is Sshwifty
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
An Open Source Web SSH Client that enables you to connect to SSH
|
An Open Source Web SSH Client that enables you to connect to SSH
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tab: "new",
|
tab: !this.restrictedToPresets ? "new" : "known",
|
||||||
canSelect: true,
|
canSelect: true,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -112,8 +112,8 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div v-if="restrictedToPresets" id="connect-known-list-presets-alert">
|
<div v-if="restrictedToPresets" id="connect-known-list-presets-alert">
|
||||||
The operator has disabled outgoing access to all remote hosts except
|
The operator has restricted the outgoing connections. You can only
|
||||||
those been defined as preset.
|
connect to remotes from the pre-defined presets.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -36,17 +36,17 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
tab: {
|
tab: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "new"
|
default: "new",
|
||||||
},
|
},
|
||||||
knownsLength: {
|
knownsLength: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 0
|
default: 0,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
switchTab(to) {
|
switchTab(to) {
|
||||||
this.$emit("switch", to);
|
this.$emit("switch", to);
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user