From 4e679df2592a4f2a9fc72eb365f960666a261e56 Mon Sep 17 00:00:00 2001 From: mzz2017 Date: Wed, 11 Aug 2021 18:22:19 +0800 Subject: [PATCH] feat: make readonly server setting copyable --- gui/src/components/modalServer.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gui/src/components/modalServer.vue b/gui/src/components/modalServer.vue index eb45a69b..2a750410 100644 --- a/gui/src/components/modalServer.vue +++ b/gui/src/components/modalServer.vue @@ -5,7 +5,7 @@ {{ $tc("configureServer.title", readonly ? 2 : 1) }}

-
+
(x.readOnly = "readOnly")); + this.$refs.section.querySelectorAll("select").forEach(x => { + const text = x.querySelector(`option[value="${x.value}"]`).textContent; + x.outerHTML = ``; + }); + } if (localStorage["vlessValid"] === "true") { this.showVLess = true; this.vlessVersion = 1;