From 82b89e449723c08054ad680a1c84ed995b61ba83 Mon Sep 17 00:00:00 2001 From: Yuriy Bakhtin Date: Wed, 3 Jul 2024 12:23:42 +0200 Subject: [PATCH] Change of "add" button --- .github/workflows/php-cs-fixer.yml | 2 +- widgets/NewMessageButton.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/php-cs-fixer.yml b/.github/workflows/php-cs-fixer.yml index 2144827..2d37e13 100644 --- a/.github/workflows/php-cs-fixer.yml +++ b/.github/workflows/php-cs-fixer.yml @@ -3,5 +3,5 @@ name: PHP CS Fixer on: push jobs: - tests: + fixers: uses: humhub/actions/.github/workflows/module-php-cs-fixer.yml@main diff --git a/widgets/NewMessageButton.php b/widgets/NewMessageButton.php index 9d92adf..a1a7361 100644 --- a/widgets/NewMessageButton.php +++ b/widgets/NewMessageButton.php @@ -37,7 +37,7 @@ class NewMessageButton extends Widget /** * @var bool */ - public $right = false; + public $right = true; /** * @var string @@ -49,7 +49,7 @@ class NewMessageButton extends Widget */ public function run() { - $button = ModalButton::info($this->getLabel())->load(Url::toCreateConversation($this->guid))->id($this->id); + $button = ModalButton::defaultType($this->getLabel())->load(Url::toCreateConversation($this->guid))->id($this->id); if($this->icon) { $button->icon($this->icon);