Skip to content

Commit

Permalink
fix(search): Reset page to one, on search
Browse files Browse the repository at this point in the history
  • Loading branch information
herrtxbias committed Mar 18, 2021
1 parent 045a67b commit 1f9826a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Http/Livewire/Dashboard/Administration/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public function render()
]);
}

public function updatedSearch(){
$this->resetPage();
}

public function refreshData(){
// Placeholder
}
Expand Down
4 changes: 4 additions & 0 deletions app/Http/Livewire/Dashboard/Incidents/Incidents.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public function render()
]);
}

public function updatedSearch(){
$this->resetPage();
}

public function refreshData(){
// Placeholder
}
Expand Down
4 changes: 4 additions & 0 deletions app/Http/Livewire/Dashboard/Incidents/PastIncidents.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public function render()
]);
}

public function updatedSearch(){
$this->resetPage();
}

public function refreshData(){
// Placeholder
}
Expand Down
4 changes: 4 additions & 0 deletions app/Http/Livewire/Dashboard/Maintenances/Maintenances.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public function render()
]);
}

public function updatedSearch(){
$this->resetPage();
}

public function refreshData(){
// Placeholder
}
Expand Down
4 changes: 4 additions & 0 deletions app/Http/Livewire/Dashboard/Maintenances/PastMaintenances.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public function render()
]);
}

public function updatedSearch(){
$this->resetPage();
}

public function refreshData(){
// Placeholder
}
Expand Down

0 comments on commit 1f9826a

Please sign in to comment.