Merge pull request #2088 from open-sausages/pulls/4.0/daft-draft

Add missing button styles to restore draft action
This commit is contained in:
Chris Joe 2018-02-07 15:51:48 +13:00 committed by GitHub
commit 98d1456384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2287,7 +2287,8 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
FormAction::create('restore', $title)
->setDescription($description)
->setAttribute('data-to-root', $restoreToRoot)
->setAttribute('data-icon', 'decline')
->addExtraClass('btn-warning font-icon-back-in-time')
->setUseButtonTag(true)
);
}