mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-03 11:55:52 +01:00
optimization for onAdminSave() to only call compileScss if in admin plugin
This commit is contained in:
@@ -289,7 +289,7 @@ class AdminPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
$obj = $event['object'];
|
$obj = $event['object'];
|
||||||
|
|
||||||
if ($obj instanceof Data) {
|
if ($obj instanceof Data && $obj->blueprints()->getFilename() === 'admin/blueprints') {
|
||||||
$this->grav['admin-whitebox']->compileScss($obj);
|
$this->grav['admin-whitebox']->compileScss($obj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user