diff --git a/app/src/Widgets/WidgetAreaField.php b/app/src/Widgets/WidgetAreaField.php index a248538..3f84312 100644 --- a/app/src/Widgets/WidgetAreaField.php +++ b/app/src/Widgets/WidgetAreaField.php @@ -65,11 +65,14 @@ class WidgetAreaField extends GridField $config->getComponentByType(GridFieldDataColumns::class)->setDisplayFields([ 'Icon' => '', 'Title' => 'Title', - 'LastEdited' => 'Changed', + 'Enabled' => 'Enabled', ])->setFieldFormatting([ 'Icon' => static function($v, Widget $item) { return ''.$item::config()->get('icon').''; - } + }, + 'Enabled' => static function($v, Widget $item) { + return $item->getField('Enabled') ? 'Yes' : 'No'; + }, ]); $config->addComponent(new GridFieldEditButton());