Preset: Switch to "Unknown remotes" tab on the Connector window if OnlyAllowPresetRemotes is on
This commit is contained in:
@@ -138,7 +138,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
tab: "new",
|
||||
tab: !this.restrictedToPresets ? "new" : "known",
|
||||
canSelect: true,
|
||||
};
|
||||
},
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user