updated permissions
This commit is contained in:
parent
8f47f40b03
commit
83f7073b18
31 changed files with 1467 additions and 901 deletions
|
|
@ -33,7 +33,7 @@ class MovieList extends Component
|
|||
|
||||
public function getList()
|
||||
{
|
||||
$list = MovieListModel::with('movies')
|
||||
$list = MovieListModel::with('movies:id,poster')
|
||||
->find($this->id);
|
||||
|
||||
if ($list) {
|
||||
|
|
@ -45,6 +45,12 @@ class MovieList extends Component
|
|||
}
|
||||
}
|
||||
|
||||
public function deleteList(): void
|
||||
{
|
||||
$this->list->delete();
|
||||
$this->redirectRoute('lists');
|
||||
}
|
||||
|
||||
public function filterMovies(): void
|
||||
{
|
||||
$this->filteredMovies = collect($this->list->movies)
|
||||
|
|
@ -62,7 +68,7 @@ class MovieList extends Component
|
|||
$this->getList();
|
||||
}
|
||||
|
||||
public function updatedSettingsForm(): void
|
||||
public function updatedSettingsFormIsPublic(): void
|
||||
{
|
||||
$this->settingsForm->save();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue