From 24795f519fcc8bb34a3adccecf0e9c882af36739 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Mon, 6 Feb 2023 14:23:41 +0200 Subject: [PATCH] feat: update `Create Relay` dialog --- .../relay-details/relay-details.html | 4 +- .../components/relay-details/relay-details.js | 6 +- static/js/index.js | 5 +- templates/nostrrelay/index.html | 64 ++++++++++--------- 4 files changed, 39 insertions(+), 40 deletions(-) diff --git a/static/components/relay-details/relay-details.html b/static/components/relay-details/relay-details.html index 3f33cc1..5baf10f 100644 --- a/static/components/relay-details/relay-details.html +++ b/static/components/relay-details/relay-details.html @@ -1,3 +1 @@ -
- xxx -
+
xxx
diff --git a/static/components/relay-details/relay-details.js b/static/components/relay-details/relay-details.js index 91384eb..5cda00f 100644 --- a/static/components/relay-details/relay-details.js +++ b/static/components/relay-details/relay-details.js @@ -21,11 +21,9 @@ async function relayDetails(path) { methods: { satBtc(val, showUnit = true) { return satOrBtc(val, showUnit, this.satsDenominated) - }, + } }, - created: async function () { - - } + created: async function () {} }) } diff --git a/static/js/index.js b/static/js/index.js index 3932067..633b701 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -16,8 +16,9 @@ const relays = async () => { data: { name: '', description: '', - type: '', - amount: '', + pubkey: '', + contact: '', + contact: '', wallet: '' } }, diff --git a/templates/nostrrelay/index.html b/templates/nostrrelay/index.html index fb7ff82..a06605c 100644 --- a/templates/nostrrelay/index.html +++ b/templates/nostrrelay/index.html @@ -98,11 +98,11 @@
- + >
@@ -130,7 +130,18 @@ + +
New Relay
+
+ - - - - - - - + v-model.trim="formDialogRelay.data.contact" + type="text" + label="Contact" + > + -
-
xxx
+
+ +
Create Relay