Commit f493e430 authored by Christoffer Palm's avatar Christoffer Palm

Merge pull request #28 from IQ-Solutions/feature-hide-save-button

#17 Hid Save contexts button if there were no contexts
parents 40e1a048 72467bf7
......@@ -210,11 +210,13 @@ class ContextListBuilder extends ConfigEntityListBuilder implements FormInterfac
'#type' => 'actions',
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => $this->t('Save contexts'),
'#button_type' => 'primary',
);
if (count($groups) > 0) {
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => $this->t('Save contexts'),
'#button_type' => 'primary',
);
}
return $form;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment