always show interface mode setting even if transport is disabled
This commit is contained in:
@@ -715,7 +715,7 @@
|
|||||||
<template v-slot:content>
|
<template v-slot:content>
|
||||||
<div class="p-2 space-y-3">
|
<div class="p-2 space-y-3">
|
||||||
|
|
||||||
<div v-show="transportEnabled">
|
<div>
|
||||||
<FormLabel class="mb-1">Interface Mode</FormLabel>
|
<FormLabel class="mb-1">Interface Mode</FormLabel>
|
||||||
<select v-model="sharedInterfaceSettings.mode" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-zinc-900 dark:border-zinc-600 dark:text-white">
|
<select v-model="sharedInterfaceSettings.mode" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-zinc-900 dark:border-zinc-600 dark:text-white">
|
||||||
<option :value="undefined">(not set)</option>
|
<option :value="undefined">(not set)</option>
|
||||||
@@ -726,7 +726,7 @@
|
|||||||
<option value="boundary">Boundary</option>
|
<option value="boundary">Boundary</option>
|
||||||
</select>
|
</select>
|
||||||
<FormSubLabel>
|
<FormSubLabel>
|
||||||
Unsure which mode to select? <a class="text-blue-500 underline" href="https://reticulum.network/manual/interfaces.html#interface-modes" target="_blank">Reticulum Docs: Interface Modes</a>
|
This setting requires Transport Mode to be enabled. <a class="text-blue-500 underline" href="https://reticulum.network/manual/interfaces.html#interface-modes" target="_blank">Reticulum Docs: Interface Modes</a>
|
||||||
</FormSubLabel>
|
</FormSubLabel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -816,9 +816,6 @@ export default {
|
|||||||
|
|
||||||
isEditingInterface: false,
|
isEditingInterface: false,
|
||||||
|
|
||||||
appInfo: null,
|
|
||||||
transportEnabled: false,
|
|
||||||
|
|
||||||
config: null,
|
config: null,
|
||||||
|
|
||||||
comports: [],
|
comports: [],
|
||||||
@@ -961,7 +958,6 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
this.getAppInfo();
|
|
||||||
this.getConfig();
|
this.getConfig();
|
||||||
this.loadComports();
|
this.loadComports();
|
||||||
|
|
||||||
@@ -1318,15 +1314,6 @@ export default {
|
|||||||
removeSubInterface(idx) {
|
removeSubInterface(idx) {
|
||||||
this.RNodeMultiInterface.subInterfaces.splice(idx, 1);
|
this.RNodeMultiInterface.subInterfaces.splice(idx, 1);
|
||||||
},
|
},
|
||||||
async getAppInfo() {
|
|
||||||
try {
|
|
||||||
const response = await window.axios.get("/api/v1/app/info");
|
|
||||||
this.appInfo = response.data.app_info;
|
|
||||||
this.transportEnabled = this.appInfo.is_transport_enabled;
|
|
||||||
} catch (e) {
|
|
||||||
console.log(e);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user