Merge pull request #2004 from creative-commoners/pulls/4.0/warning-button-state-for-revert

FIX Add warning state to revert action in CMS page history
This commit is contained in:
Paul 2017-10-31 10:36:15 +13:00 committed by GitHub
commit a46b5508a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,7 +202,7 @@ class CMSPageHistoryController extends CMSMain
_t('SilverStripe\\CMS\\Controllers\\CMSPageHistoryController.REVERTTOTHISVERSION', 'Revert to this version') _t('SilverStripe\\CMS\\Controllers\\CMSPageHistoryController.REVERTTOTHISVERSION', 'Revert to this version')
) )
->setUseButtonTag(true) ->setUseButtonTag(true)
->addExtraClass('font-icon-back-in-time') ->addExtraClass('btn-warning font-icon-back-in-time')
); );
$actions->setForm($form); $actions->setForm($form);
$form->setActions($actions); $form->setActions($actions);