From 272445be0884c390b05b3e0c1e00c1e717240890 Mon Sep 17 00:00:00 2001
From: EL OUFIR Hatim
Date: Fri, 23 Sep 2022 23:00:58 +0100
Subject: [PATCH 1/3] Update UsersDialog.php
---
app/Http/Livewire/Administration/UsersDialog.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/app/Http/Livewire/Administration/UsersDialog.php b/app/Http/Livewire/Administration/UsersDialog.php
index 89666ad8..657a35aa 100644
--- a/app/Http/Livewire/Administration/UsersDialog.php
+++ b/app/Http/Livewire/Administration/UsersDialog.php
@@ -71,14 +71,14 @@ protected function getFormSchema(): array
public function save(): void {
$data = $this->form->getState();
if (!$this->user?->id) {
- $user = User::create([
+ /*$user = User::create([
'name' => $data['name'],
'email' => $data['email'],
'role' => $data['role'],
'password' => bcrypt(uniqid()),
'register_token' => Uuid::uuid4()->toString()
]);
- $user->notify(new UserCreatedNotification($user));
+ $user->notify(new UserCreatedNotification($user));*/
Notification::make()
->success()
->title(__('User created'))
@@ -88,7 +88,7 @@ public function save(): void {
$this->user->name = $data['name'];
$this->user->email = $data['email'];
$this->user->role = $data['role'];
- $this->user->save();
+ // $this->user->save();
Notification::make()
->success()
->title(__('User updated'))
@@ -104,7 +104,7 @@ public function save(): void {
* @return void
*/
public function doDeleteUser(): void {
- $this->user->delete();
+ // $this->user->delete();
$this->deleteConfirmationOpened = false;
$this->emit('userDeleted');
Notification::make()
From d5d524b6e1b5fbda8ca068ed96f451629f75b1b7 Mon Sep 17 00:00:00 2001
From: EL OUFIR Hatim
Date: Fri, 23 Sep 2022 23:40:52 +0100
Subject: [PATCH 2/3] Update README.md
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 1887afc5..bc3aa012 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@
-
+
@@ -61,7 +61,7 @@ You can check our online demo here: [Online demo](http://helpdesk.devaslan.com/)
## Documentation
-You can find a full documentation here: [Documentation](http://laravel-help-desk.herokuapp.com/docs)
+You can find a full documentation here: [Documentation](https://laravel-help-desk.herokuapp.com/docs)
## Work in progress
From 3c7c470472da91bb447124b659e26869f260a83e Mon Sep 17 00:00:00 2001
From: Hatim EL OUFIR
Date: Sun, 25 Sep 2022 18:57:45 +0100
Subject: [PATCH 3/3] Remove save / delete disablers
---
app/Http/Livewire/Administration/UsersDialog.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/app/Http/Livewire/Administration/UsersDialog.php b/app/Http/Livewire/Administration/UsersDialog.php
index 9a8182c5..a5fe507e 100644
--- a/app/Http/Livewire/Administration/UsersDialog.php
+++ b/app/Http/Livewire/Administration/UsersDialog.php
@@ -161,7 +161,7 @@ public function save(): void
{
$data = $this->form->getState();
if (!$this->user?->id) {
- /*$user = User::create([
+ $user = User::create([
'name' => $data['name'],
'email' => $data['email'],
'locale' => $data['locale'],
@@ -169,7 +169,7 @@ public function save(): void
'register_token' => Uuid::uuid4()->toString()
]);
$user->syncPermissions($this->permissions);
- $user->notify(new UserCreatedNotification($user));*/
+ $user->notify(new UserCreatedNotification($user));
Notification::make()
->success()
->title(__('User created'))
@@ -185,7 +185,7 @@ public function save(): void
$this->user->name = $data['name'];
$this->user->email = $data['email'];
$this->user->locale = $data['locale'];
- // $this->user->save();
+ $this->user->save();
$this->user->syncPermissions($this->permissions);
Notification::make()
->success()
@@ -212,7 +212,7 @@ public function save(): void
* @return void
*/
public function doDeleteUser(): void {
- // $this->user->delete();
+ $this->user->delete();
$this->deleteConfirmationOpened = false;
$this->emit('userDeleted');
Notification::make()