From 773e238819942fdcd0d994711e1910fa46ef36b5 Mon Sep 17 00:00:00 2001 From: EL OUFIR Hatim Date: Tue, 27 Sep 2022 18:44:07 +0100 Subject: [PATCH] Bug-fix: Kanban / disable update slug on update modal --- .../Administration/TicketPrioritiesDialog.php | 1 - .../Administration/TicketStatusesDialog.php | 1 - .../Administration/TicketTypesDialog.php | 1 - app/Http/Livewire/Kanban.php | 36 ++++++++++--------- public/docs/index.html | 9 +++-- 5 files changed, 27 insertions(+), 21 deletions(-) diff --git a/app/Http/Livewire/Administration/TicketPrioritiesDialog.php b/app/Http/Livewire/Administration/TicketPrioritiesDialog.php index d175657..3e1fd88 100644 --- a/app/Http/Livewire/Administration/TicketPrioritiesDialog.php +++ b/app/Http/Livewire/Administration/TicketPrioritiesDialog.php @@ -136,7 +136,6 @@ public function save(): void $this->priority->text_color = $data['text_color']; $this->priority->bg_color = $data['bg_color']; $this->priority->icon = $data['icon']; - $this->priority->slug = Str::slug($data['title'], '_'); $this->priority->save(); Notification::make() ->success() diff --git a/app/Http/Livewire/Administration/TicketStatusesDialog.php b/app/Http/Livewire/Administration/TicketStatusesDialog.php index dc1641e..c38cf08 100644 --- a/app/Http/Livewire/Administration/TicketStatusesDialog.php +++ b/app/Http/Livewire/Administration/TicketStatusesDialog.php @@ -104,7 +104,6 @@ public function save(): void $this->status->text_color = $data['text_color']; $this->status->bg_color = $data['bg_color']; $this->status->default = $data['default']; - $this->status->slug = Str::slug($data['title'], '_'); $this->status->save(); Notification::make() ->success() diff --git a/app/Http/Livewire/Administration/TicketTypesDialog.php b/app/Http/Livewire/Administration/TicketTypesDialog.php index b221851..2bafbb2 100644 --- a/app/Http/Livewire/Administration/TicketTypesDialog.php +++ b/app/Http/Livewire/Administration/TicketTypesDialog.php @@ -125,7 +125,6 @@ public function save(): void $this->type->text_color = $data['text_color']; $this->type->bg_color = $data['bg_color']; $this->type->icon = $data['icon']; - $this->type->slug = Str::slug($data['title'], '_'); $this->type->save(); Notification::make() ->success() diff --git a/app/Http/Livewire/Kanban.php b/app/Http/Livewire/Kanban.php index 4443963..6b885e2 100644 --- a/app/Http/Livewire/Kanban.php +++ b/app/Http/Livewire/Kanban.php @@ -53,21 +53,25 @@ protected function records(): Collection 'title' => new HtmlString('
-
- -
-
- -
+ ' . ($type ? ' +
+ +
+ ' : '') . ' + ' . ($priority ? ' +
+ +
+ ' : '') . ' ' . Str::limit($ticket->title, 15) . ' @@ -79,7 +83,7 @@ class="text-xs rounded-full w-6 h-6 flex items-center justify-center text-center