Added:
- turbo-stream for Chapter updates - progressbar for chapter scrapping - minor optimisations
This commit is contained in:
21
templates/broadcast/Chapter.stream.html.twig
Normal file
21
templates/broadcast/Chapter.stream.html.twig
Normal file
@@ -0,0 +1,21 @@
|
||||
{% block create %}
|
||||
<turbo-stream action="prepend" target="volume-{{ entity.volume }}">
|
||||
<template>
|
||||
{% include 'manga/_chapter_row.html.twig' with { chapter: entity, manga: entity.manga } %}
|
||||
</template>
|
||||
</turbo-stream>
|
||||
{% endblock %}
|
||||
|
||||
{% block update %}
|
||||
<turbo-stream action="remove" target="activity-{{ entity.id }}"></turbo-stream>
|
||||
|
||||
<turbo-stream action="replace" target="chapter-{{ entity.id }}">
|
||||
<template>
|
||||
{% include 'manga/_chapter_row.html.twig' with { chapter: entity, manga: entity.manga } %}
|
||||
</template>
|
||||
</turbo-stream>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block remove %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user