From 2bc3fb1b91b5021e07cd4c9924e65099b3ac8f1b Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Wed, 23 Jun 2021 23:58:39 +0100 Subject: [PATCH] few bugs --- .../copilot/templates/copilot/index.html | 37 ++++++++++--------- .../copilot/templates/copilot/panel.html | 13 +++++-- lnbits/extensions/copilot/views_api.py | 10 ++--- 3 files changed, 34 insertions(+), 26 deletions(-) diff --git a/lnbits/extensions/copilot/templates/copilot/index.html b/lnbits/extensions/copilot/templates/copilot/index.html index 78739f193..a760e1e8c 100644 --- a/lnbits/extensions/copilot/templates/copilot/index.html +++ b/lnbits/extensions/copilot/templates/copilot/index.html @@ -112,7 +112,9 @@ @click="openUpdateCopilotLink(props.row.id)" icon="edit" color="light-blue" - > + > + Edit copilot + +
@@ -10,12 +10,12 @@ dense @click="openCompose" icon="face" - style="font-size: 80px" + style="font-size: 60px" >
-
+
Title: {% raw %} {{ copilot.title }} {% endraw %}
@@ -28,6 +28,7 @@ color="primary" @click="fullscreenToggle" label="Screen share" + size="sm" >
@@ -39,6 +40,7 @@ color="primary" @click="animationBTN('rocket')" label="rocket" + size="sm" />
@@ -47,6 +49,7 @@ color="primary" @click="animationBTN('confetti')" label="confetti" + size="sm" />
@@ -55,6 +58,7 @@ color="primary" @click="animationBTN('face')" label="face" + size="sm" />
@@ -65,6 +69,7 @@ color="primary" @click="animationBTN('rick')" label="rick" + size="sm" />
@@ -73,6 +78,7 @@ color="primary" @click="animationBTN('martijn')" label="martijn" + size="sm" />
@@ -81,6 +87,7 @@ color="primary" @click="animationBTN('bitcoin')" label="bitcoin" + size="sm" />
diff --git a/lnbits/extensions/copilot/views_api.py b/lnbits/extensions/copilot/views_api.py index 22b21837f..de7552023 100644 --- a/lnbits/extensions/copilot/views_api.py +++ b/lnbits/extensions/copilot/views_api.py @@ -27,20 +27,20 @@ from .crud import ( @api_validate_post_request( schema={ "title": {"type": "string", "empty": False, "required": True}, - "lnurl_toggle": {"type": "integer", "empty": False, "required": True}, + "lnurl_toggle": {"type": "integer", "empty": False}, "wallet": {"type": "string", "empty": False, "required": False}, "animation1": {"type": "string", "empty": True, "required": False}, "animation2": {"type": "string", "empty": True, "required": False}, "animation3": {"type": "string", "empty": True, "required": False}, - "animation1threshold": {"type": "string", "empty": True, "required": False}, - "animation2threshold": {"type": "string", "empty": True, "required": False}, - "animation3threshold": {"type": "string", "empty": True, "required": False}, + "animation1threshold": {"type": "integer", "empty": True, "required": False}, + "animation2threshold": {"type": "integer", "empty": True, "required": False}, + "animation3threshold": {"type": "integer", "empty": True, "required": False}, "animation1webhook": {"type": "string", "empty": True, "required": False}, "animation2webhook": {"type": "string", "empty": True, "required": False}, "animation3webhook": {"type": "string", "empty": True, "required": False}, "lnurl_title": {"type": "string", "empty": True, "required": False}, "show_message": {"type": "integer", "empty": True, "required": False}, - "show_ack": {"type": "integer", "empty": True, "required": True}, + "show_ack": {"type": "integer", "empty": True}, "show_price": {"type": "string", "empty": True}, } )