Skip to content

Commit aa36369

Browse files
author
Andres Vargas
committed
update styles and comments
1 parent 0ac2f9b commit aa36369

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

core/templates/counter.livewire.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div style="text-align: center">
2-
<button wire:click="increment">+</button>
3-
<h1>{{ count }}</h1>
4-
<button wire:click="decrement">-</button>
2+
<button class="button is-primary is-light is-large" wire:click="increment">+</button>
3+
<h1 class="title" >{{ count }}</h1>
4+
<button class="button is-primary is-light is-large" wire:click="decrement">-</button>
55
</div>

livewire/views.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import xml.etree.ElementTree as ET
1212

1313
def livewire_message(request, component_name):
14+
15+
# TODO: change for load the component dynamic
1416
from core.views import CounterLivewire
1517
inst = CounterLivewire()
1618
if request.method == "POST":
@@ -63,6 +65,9 @@ def parser_payload(self, payload):
6365
if action_type == "callMethod":
6466
method = payload.get("method")
6567
params = payload.get("params",[])
68+
"""
69+
RUN THIS IT IS REALLY SAFE ???
70+
"""
6671
local_method = getattr(self, method)
6772
local_method(*params)
6873

0 commit comments

Comments
 (0)