always show interface mode setting even if transport is disabled

This commit is contained in:
liamcottle
2025-02-02 23:19:49 +13:00
parent d95878c659
commit e48c26042c

View File

@@ -715,7 +715,7 @@
<template v-slot:content>
<div class="p-2 space-y-3">
<div v-show="transportEnabled">
<div>
<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">
<option :value="undefined">(not set)</option>
@@ -726,7 +726,7 @@
<option value="boundary">Boundary</option>
</select>
<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>
</div>
@@ -816,9 +816,6 @@ export default {
isEditingInterface: false,
appInfo: null,
transportEnabled: false,
config: null,
comports: [],
@@ -961,7 +958,6 @@ export default {
},
mounted() {
this.getAppInfo();
this.getConfig();
this.loadComports();
@@ -1318,15 +1314,6 @@ export default {
removeSubInterface(idx) {
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>