localstorage paneltest
This commit is contained in:
parent
1736198a7d
commit
693e1f9eb7
1 changed files with 12 additions and 6 deletions
|
|
@ -75,9 +75,7 @@
|
||||||
size="xs"
|
size="xs"
|
||||||
icon="apps"
|
icon="apps"
|
||||||
:color="($q.dark.isActive) ? 'grey-7' : 'grey-5'"
|
:color="($q.dark.isActive) ? 'grey-7' : 'grey-5'"
|
||||||
type="a"
|
@click="openCopilotPanel(props.row.id)"
|
||||||
:href="props.row.displayPanelUrl"
|
|
||||||
target="_blank"
|
|
||||||
>
|
>
|
||||||
<q-tooltip> Panel </q-tooltip>
|
<q-tooltip> Panel </q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
@ -89,7 +87,7 @@
|
||||||
size="xs"
|
size="xs"
|
||||||
icon="face"
|
icon="face"
|
||||||
:color="($q.dark.isActive) ? 'grey-7' : 'grey-5'"
|
:color="($q.dark.isActive) ? 'grey-7' : 'grey-5'"
|
||||||
@click="opencopilotCompose(props.row.id)"
|
@click="openCopilotCompose(props.row.id)"
|
||||||
>
|
>
|
||||||
<q-tooltip> Compose window </q-tooltip>
|
<q-tooltip> Compose window </q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
@ -512,7 +510,7 @@
|
||||||
LNbits.utils.notifyApiError(error)
|
LNbits.utils.notifyApiError(error)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
opencopilotCompose: function (copilot_id) {
|
openCopilotCompose: function (copilot_id) {
|
||||||
localStorage.setItem(
|
localStorage.setItem(
|
||||||
'copilot',
|
'copilot',
|
||||||
JSON.stringify(this.getCopilot(copilot_id))
|
JSON.stringify(this.getCopilot(copilot_id))
|
||||||
|
|
@ -521,7 +519,15 @@
|
||||||
'scrollbars=no, resizable=no,status=no,location=no,toolbar=no,menubar=no,width=1722,height=972,left=200,top=200'
|
'scrollbars=no, resizable=no,status=no,location=no,toolbar=no,menubar=no,width=1722,height=972,left=200,top=200'
|
||||||
open('../copilot/cp/', 'test', params)
|
open('../copilot/cp/', 'test', params)
|
||||||
},
|
},
|
||||||
|
openCopilotPanel: function (copilot_id) {
|
||||||
|
localStorage.setItem(
|
||||||
|
'copilot',
|
||||||
|
JSON.stringify(this.getCopilot(copilot_id))
|
||||||
|
)
|
||||||
|
let params =
|
||||||
|
'scrollbars=no, resizable=no,status=no,location=no,toolbar=no,menubar=no,width=1722,height=972,left=200,top=200'
|
||||||
|
open('../copilot/pn/', 'test', params)
|
||||||
|
},
|
||||||
deleteCopilotLink: function (chargeId) {
|
deleteCopilotLink: function (chargeId) {
|
||||||
var self = this
|
var self = this
|
||||||
var link = _.findWhere(this.CopilotLinks, {id: chargeId})
|
var link = _.findWhere(this.CopilotLinks, {id: chargeId})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue