Remove up/down buttons for slides
Drag and drop (including arrow keys on the handle) replaces them, so the move route, action and table method are gone as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4034a65498
commit
60fb2cb029
7 files changed
+4
-60
No files matched your search
@@ -107,19 +107,6 @@ class SlidesController extends AdminAppController
|
||||
return $this->redirect($this->adminUrl());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $id Slide id
|
||||
* @param string $direction up|down
|
||||
* @return \Cake\Http\Response|null
|
||||
*/
|
||||
public function move(string $id, string $direction): ?Response
|
||||
{
|
||||
$this->request->allowMethod(['post']);
|
||||
$this->Slides->move($this->loadSlide($id), $direction);
|
||||
|
||||
return $this->redirect($this->adminUrl());
|
||||
}
|
||||
|
||||
/**
|
||||
* Saves a complete new slide order (drag & drop), expects `ids[]` and answers with JSON.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user