amazon events published as server side event
This commit is contained in:
@@ -11,12 +11,24 @@
|
||||
{{- end }}
|
||||
|
||||
|
||||
{{/* sse handler */}}
|
||||
<div
|
||||
hidden
|
||||
hx-trigger="sse:accounts_{{$acctID}}_simulations"
|
||||
hx-get="/ui/accounts/{{$acctID}}/reports/mock"
|
||||
hx-vals="js:{
|
||||
platform: (new URLSearchParams(window.location.search)).get('platform'),
|
||||
'shop-id': (new URLSearchParams(window.location.search)).get('shop-id'),
|
||||
}"
|
||||
hx-target="body"
|
||||
>
|
||||
</div>
|
||||
|
||||
<label for="shop-selector">
|
||||
Select a Shop
|
||||
</label>
|
||||
<select
|
||||
id="shop-selector"
|
||||
hx-swap=""
|
||||
hx-get="/ui/accounts/{{$acctID}}/reports/mock"
|
||||
hx-vals="js:{
|
||||
platform: console.log(event.target.value.replace(/-.*/, '')) || event.target.value.replace(/-.*/, ''),
|
||||
|
||||
Reference in New Issue
Block a user