diff --git a/frontend/src/components/PeerEditModal.vue b/frontend/src/components/PeerEditModal.vue index b787eca..b683d30 100644 --- a/frontend/src/components/PeerEditModal.vue +++ b/frontend/src/components/PeerEditModal.vue @@ -172,7 +172,7 @@ function handleChangeAllowedIPs(tags) { } }) if(validInput) { - formData.value.AllowedIPs = tags + formData.value.AllowedIPs.Value = tags } } @@ -340,9 +340,17 @@ async function del() {
State -
- - +
+
+
+ + +
+
+
+ + +
diff --git a/frontend/src/components/PeerViewModal.vue b/frontend/src/components/PeerViewModal.vue index 94cb240..9727d63 100644 --- a/frontend/src/components/PeerViewModal.vue +++ b/frontend/src/components/PeerViewModal.vue @@ -4,7 +4,7 @@ import {peerStore} from "@/stores/peers"; import {interfaceStore} from "@/stores/interfaces"; import {computed, ref, watch} from "vue"; import {useI18n} from "vue-i18n"; -import { freshInterface, freshPeer } from '@/helpers/models'; +import {freshInterface, freshPeer, freshStats} from '@/helpers/models'; import Prism from "vue-prism-component"; import {notify} from "@kyvg/vue3-notification"; @@ -36,6 +36,16 @@ const selectedPeer = computed(() => { return p }) +const selectedStats = computed(() => { + let s = peers.Statistics(props.peerId) + + if (!s) { + s = freshStats() // dummy peer to avoid 'undefined' exceptions + } + + return s +}) + const selectedInterface = computed(() => { let i = interfaces.GetSelected; @@ -105,14 +115,14 @@ function email() {