Skip to content

Commit

Permalink
fixed on action/ comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alex40724 committed Sep 21, 2018
1 parent c333fe3 commit c45870c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/UI/Component/Button/Toggle.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ interface Toggle extends Button {
public function isOn();

/**
* Get the action of the Toggle Button when it is on.
* Get the action of the Toggle Button when it is set from off to on.
*
* @return string|Signal[]
*/
public function getActionOn();

/**
* Get the action of the Toggle Button when it is off.
* Get the action of the Toggle Button when it is set from on to off.
*
* @return string|Signal[]
*/
Expand Down
4 changes: 2 additions & 2 deletions src/UI/Implementation/Component/Button/Toggle.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ public function getActionOff()
*/
public function getActionOn()
{
if ($this->action !== null) {
return $this->action;
if ($this->action_on !== null) {
return $this->action_on;
}

return $this->getTriggeredSignalsFor("toggle_on");
Expand Down

0 comments on commit c45870c

Please sign in to comment.