Skip to content

Commit 63a761e

Browse files
committed
Patch: Load new comment modal in ticket card only
1 parent e13ef44 commit 63a761e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/Views/tickets/partials/comments/index.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
@endif
1515
{!! $comments->render() !!}
1616

17-
@include('panichd::tickets.partials.comments.modal_new')
17+
@if(isset($new_comment_modal))
18+
@include('panichd::tickets.partials.comments.modal_new')
19+
@endif
1820
@endif
1921
@append
2022

src/Views/tickets/show.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
@endif
1717
@endsection
1818

19-
@include('panichd::tickets.partials.comments.index')
19+
@include('panichd::tickets.partials.comments.index', ['new_comment_modal' => true])
2020

2121
@include('panichd::shared.photoswipe_files')
2222
@include('panichd::shared.jcrop_files')

0 commit comments

Comments
 (0)