diff --git a/lnbits/extensions/copilot/templates/copilot/index.html b/lnbits/extensions/copilot/templates/copilot/index.html
index d055e052..91bae65f 100644
--- a/lnbits/extensions/copilot/templates/copilot/index.html
+++ b/lnbits/extensions/copilot/templates/copilot/index.html
@@ -88,9 +88,7 @@
size="xs"
icon="face"
:color="($q.dark.isActive) ? 'grey-7' : 'grey-5'"
- type="a"
- :href="props.row.displayComposeUrl"
- target="_blank"
+ @click="opencopilotCompose(props.row.id)"
>
Compose window
@@ -477,6 +475,12 @@
LNbits.utils.notifyApiError(error)
})
},
+ opencopilotCompose: function (copilot_id) {
+ let params =
+ 'scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=900,height=500,left=200,top=200'
+ open('../copilot/cp/' + copilot_id, 'test', params)
+ },
+
deleteCopilotLink: function (chargeId) {
var self = this
var link = _.findWhere(this.CopilotLinks, {id: chargeId})
diff --git a/lnbits/extensions/copilot/templates/copilot/panel.html b/lnbits/extensions/copilot/templates/copilot/panel.html
index 6a7ed069..a3b30ea6 100644
--- a/lnbits/extensions/copilot/templates/copilot/panel.html
+++ b/lnbits/extensions/copilot/templates/copilot/panel.html
@@ -2,26 +2,82 @@
-
-
- {{ copilot.title }}
-
-
-
say what
-
+
- Open compose window
+
+
+
+ Title: {{ copilot.title }}
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
@@ -41,7 +97,10 @@
counter: 1,
newTimeLeft: '',
lnbtc: true,
- onbtc: false
+ onbtc: false,
+ formDialogCopilot: {
+ fullscreen_cam: true
+ }
}
},
methods: {