Skip to content

Commit

Permalink
applies a conditional to have the the integration test button functio…
Browse files Browse the repository at this point in the history
…n properly
  • Loading branch information
Godmartinz committed Jan 31, 2024
1 parent 0eabb14 commit f452204
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions app/Http/Livewire/SlackSettingsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ public function mount() {
$this->webhook_channel = $this->setting->webhook_channel;
$this->webhook_botname = $this->setting->webhook_botname;
$this->webhook_options = $this->setting->webhook_selected;
if($this->webhook_selected == 'microsoft' ||$this->webhook_selected == 'google'){
$this->webhook_channel = 'NA';
}


if($this->setting->webhook_endpoint != null && $this->setting->webhook_channel != null){
Expand All @@ -103,6 +106,10 @@ public function updatedWebhookSelected() {
$this->isDisabled= '';
$this->save_button = trans('general.save');
}
if($this->webhook_selected == 'microsoft' ||$this->webhook_selected == 'google'){
$this->webhook_channel = 'NA';
}

}

private function isButtonDisabled() {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"guzzlehttp/guzzle": "^7.0.1",
"intervention/image": "^2.5",
"javiereguiluz/easyslugger": "^1.0",
"laravel-notification-channels/google-chat": "*",
"laravel-notification-channels/google-chat": "^1.0",
"laravel-notification-channels/microsoft-teams": "^1.1",
"laravel/framework": "^8.46",
"laravel/helpers": "^1.4",
Expand Down
2 changes: 1 addition & 1 deletion resources/lang/en-US/admin/hardware/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'checkedout_to' => 'Checked Out To',
'checkout_date' => 'Checkout Date',
'checkin_date' => 'Checkin Date',
'checkout_to' => 'Checked out to',
'checkout_to' => 'Checkout to',
'cost' => 'Purchase Cost',
'create' => 'Create Asset',
'date' => 'Purchase Date',
Expand Down

0 comments on commit f452204

Please sign in to comment.