[Favourite][Reply][Repeat] The respective svg for note actions is assigned. Repeat note handler needs work. "An exception has been thrown during the rendering of a template ("No value in table note matches the requested criteria")." exception thrown on repeat.

This commit is contained in:
2021-09-05 14:34:30 +01:00
committed by Hugo Sales
parent f9f4f179bb
commit f000532b7e
7 changed files with 56 additions and 21 deletions

View File

@@ -50,9 +50,15 @@ class Repeat extends NoteHandlerPlugin
$is_set = false;
}
$form = Form::create([
['is_set', HiddenType::class, ['data' => $is_set ? '1' : '0']],
['note_id', HiddenType::class, ['data' => $note->getId()]],
['repeat', SubmitType::class, ['label' => ' ']],
['repeat', SubmitType::class,
[
'label' => ' ',
'attr' => [
'class' => $is_set ? 'note-actions-set' : 'note-actions-unset',
],
],
],
]);
// Handle form