mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-14 15:37:53 +00:00
feat: pretty-print recipe data payload
This commit is contained in:
parent
ea6eef0db3
commit
56c00c2489
1 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ new class extends Component {
|
||||||
$this->polling_url = $this->plugin->polling_url;
|
$this->polling_url = $this->plugin->polling_url;
|
||||||
$this->polling_verb = $this->plugin->polling_verb;
|
$this->polling_verb = $this->plugin->polling_verb;
|
||||||
$this->polling_header = $this->plugin->polling_header;
|
$this->polling_header = $this->plugin->polling_header;
|
||||||
$this->data_payload = json_encode($this->plugin->data_payload);
|
$this->data_payload = json_encode($this->plugin->data_payload, JSON_PRETTY_PRINT);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function saveMarkup(): void
|
public function saveMarkup(): void
|
||||||
|
|
@ -115,7 +115,7 @@ new class extends Component {
|
||||||
->json();
|
->json();
|
||||||
|
|
||||||
$this->plugin->update(['data_payload' => $response]);
|
$this->plugin->update(['data_payload' => $response]);
|
||||||
$this->data_payload = json_encode($response);
|
$this->data_payload = json_encode($response, JSON_PRETTY_PRINT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue