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