diff --git a/src/components/ConfigModal.vue b/src/components/ConfigModal.vue index 965ce74..a862dc6 100644 --- a/src/components/ConfigModal.vue +++ b/src/components/ConfigModal.vue @@ -22,6 +22,10 @@ const formServers = computed({ set: (value) => config.value.servers = (value || "").replace(/https?:\/\//ig, "").split(/[, ]+/).filter(isServer), }); +const hasServers = computed(()=> { + return config.value.servers.length > 0 +}) + const tagPattern = /#?([\p{Letter}\p{Number}\p{Mark}\p{Connector_Punctuation}_]+)/igu const formTags = computed({ get: () => config.value.tags.map(t => '#' + t).join(" "), @@ -148,18 +152,43 @@ const onSubmit = () => {