Skip to content

Commit 0943dad

Browse files
committed
Addded confirm dialog before publish post
1 parent 61a6c44 commit 0943dad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

resources/views/post/edit.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class="mt-3 gap-3 d-flex flex-column flex-md-row justify-content-center justify-
6464
<button
6565
formaction="{{ $post->exists ? route('post.update', $post) : route('post.store') }}"
6666
type="submit"
67+
data-turbo-confirm="Ваша публикация будет доступно широкой аудитории. Публикуйте ответственно."
6768
class="btn btn-primary mb-3 mb-md-0">
6869
{{ $post->exists ? "Обновить" : "Опубликовать" }}
6970
</button>

0 commit comments

Comments
 (0)