From 7ead7bb3c1ed4ca65ed06defb812ad1e5e041f47 Mon Sep 17 00:00:00 2001 From: Lee Overy Date: Sat, 8 Feb 2020 20:22:33 +0000 Subject: [PATCH] WIP --- resources/views/app/webhooks/index.blade.php | 8 +++++--- src/Models/Webhook.php | 5 +++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/resources/views/app/webhooks/index.blade.php b/resources/views/app/webhooks/index.blade.php index 0949009..aaa19b3 100644 --- a/resources/views/app/webhooks/index.blade.php +++ b/resources/views/app/webhooks/index.blade.php @@ -39,9 +39,11 @@ @if($webhook->isActive()) - + + @elseif($webhook->isInactive()) + @else - + @endif @@ -73,7 +75,7 @@ > - @else + @elseif ($webhook->isInactive()) status === WebhookStatus::DEACTIVATED; } + public function isDraft() + { + return $this->status === WebhookStatus::DRAFT; + } + public function activate() { $this->status = WebhookStatus::ACTIVATED;