mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-27 16:26:32 +01:00
Implemented Preview button and states abstraction for toolbar
This commit is contained in:
@@ -750,7 +750,7 @@ class AdminController
|
||||
|
||||
$html = $page->content();
|
||||
|
||||
$this->admin->json_response = ['status' => 'success', 'message' => $html];
|
||||
$this->admin->json_response = ['status' => 'success', 'preview' => $html];
|
||||
} catch (\Exception $e) {
|
||||
$this->admin->json_response = ['status' => 'error', 'message' => $e->getMessage()];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user