This commit is contained in:
@@ -109,6 +109,8 @@ class CreateEditBot extends Component
|
|||||||
|
|
||||||
public function save(): void
|
public function save(): void
|
||||||
{
|
{
|
||||||
|
$this->schedule = trim(preg_replace('/\s{2,}/', ' ', $this->schedule));
|
||||||
|
$this->updatedSchedule($this->schedule);
|
||||||
$this->validate();
|
$this->validate();
|
||||||
|
|
||||||
if (!class_exists($this->class)) {
|
if (!class_exists($this->class)) {
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
@if ($meta['type'] === 'json')
|
@if ($meta['type'] === 'json')
|
||||||
<div x-data="jsonEditor(@entangle('config.' . $field))">
|
<div x-data="jsonEditor(@entangle('config.' . $field))">
|
||||||
<textarea
|
<textarea
|
||||||
|
wire:ignore
|
||||||
id="config-body"
|
id="config-body"
|
||||||
x-model="value"
|
x-model="value"
|
||||||
wire:model.live="config.{{ $field }}"
|
wire:model.live="config.{{ $field }}"
|
||||||
@@ -67,6 +68,7 @@
|
|||||||
</span>
|
</span>
|
||||||
@elseif ($meta['type'] === 'textarea')
|
@elseif ($meta['type'] === 'textarea')
|
||||||
<textarea
|
<textarea
|
||||||
|
wire:ignore
|
||||||
wire:model.live="config.{{ $field }}"
|
wire:model.live="config.{{ $field }}"
|
||||||
class="border rounded w-full"
|
class="border rounded w-full"
|
||||||
name="config[{{ $field }}]"
|
name="config[{{ $field }}]"
|
||||||
|
|||||||
Reference in New Issue
Block a user