mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Extra CSS classes in SiteTree->getCMSActions()
This commit is contained in:
parent
8382ebb742
commit
bb0574e214
@ -1987,7 +1987,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
// "unpublish"
|
||||
$unpublish = FormAction::create('unpublish', _t('SiteTree.BUTTONUNPUBLISH', 'Unpublish'), 'delete');
|
||||
$unpublish->describe(_t('SiteTree.BUTTONUNPUBLISHDESC', 'Remove this page from the published site'));
|
||||
$unpublish->addExtraClass('delete');
|
||||
$unpublish->addExtraClass('unpublish');
|
||||
$unpublish->addExtraClass('ss-ui-action-destructive');
|
||||
$actions->push($unpublish);
|
||||
}
|
||||
@ -2025,7 +2025,8 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
}
|
||||
|
||||
// "save"
|
||||
$actions->push(new FormAction('save',_t('CMSMain.SAVE','Save')));
|
||||
$actions->push($saveDraftAction = new FormAction('save',_t('CMSMain.SAVE','Save Draft')));
|
||||
$saveDraftAction->addExtraClass('save-draft');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user