Skip to content

Commit

Permalink
[Addition] Added a *Save and compile* button to ThemeManager Configur…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
zoglo committed Aug 26, 2021
1 parent e89e411 commit e9a4893
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"php":"^5.6 || ^7.0",
"contao/core-bundle":"^4.4",
"oveleon/contao-component-style-manager":"^2.4",
"oveleon/contao-theme-compiler-bundle":"^1.0",
"oveleon/contao-theme-compiler-bundle":"^1.1",
"oveleon/contao-config-driver-bundle":"^1.0",
"madeyourday/contao-rocksolid-custom-elements": "^2.2",
"madeyourday/contao-rocksolid-icon-picker": "^2.0"
Expand Down
15 changes: 13 additions & 2 deletions src/Resources/contao/dca/tl_thememanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,19 @@
'onload_callback' => array
(
array('tl_thememanager', 'checkPermission')
)
)
),
'onsubmit_callback' => array
(
array(Oveleon\ContaoThemeCompilerBundle\CompilerUtils::class, 'redirectMaintenanceAndCompile')
)
),
'edit' => array
(
'buttons_callback' => array
(
array(Oveleon\ContaoThemeCompilerBundle\CompilerUtils::class, 'addSaveNCompileButton')
)
)
);


Expand Down

0 comments on commit e9a4893

Please sign in to comment.