Skip to content

Commit

Permalink
Improved field section naming
Browse files Browse the repository at this point in the history
  • Loading branch information
colintucker committed Jul 15, 2017
1 parent 1c9a9f0 commit 6dd77d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Components/SharingComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ public function getCMSFields()
$fields->addFieldToTab(
'Root.Style',
FieldSection::create(
'SharingComponentStyle',
$this->i18n_singular_name(),
'SharingStyle',
$this->fieldLabel('SharingStyle'),
[
DropdownField::create(
'ButtonLayout',
Expand Down Expand Up @@ -170,6 +170,7 @@ public function fieldLabels($includerelations = true)
// Define Field Labels:

$labels['ButtonLayout'] = _t(__CLASS__ . '.BUTTONLAYOUT', 'Button layout');
$labels['SharingStyle'] = _t(__CLASS__ . '.SHARING', 'Sharing');

// Answer Field Labels:

Expand Down

0 comments on commit 6dd77d2

Please sign in to comment.