@@ -109,16 +109,15 @@ import VModal from "@/components/VModal.vue";
109109import { useFetchComments } from " @/composables/comments.composable" ;
110110import { useApplyFilters } from " @/composables/filter.composable" ;
111111import useFetchPost from " @/composables/posts.composable" ;
112- import { useToast } from " @/composables/toast .composable" ;
112+ import { useCustomToast } from " @/composables/customToast .composable" ;
113113import ThemeColor from " @/enums/ThemeColor" ;
114114import StorageService from " @/services/storage.service" ;
115115import { computed , reactive , ref , watch } from " vue" ;
116116
117117export default {
118118 name: " CommentsView" ,
119119 setup () {
120- const { showToast } = useToast ();
121-
120+ const { showToast } = useCustomToast ();
122121 const { comments , commentsIsLoading , fetchComments , changeStatus: changeCommentStatus } = useFetchComments ();
123122 fetchComments ({});
124123
@@ -196,20 +195,18 @@ export default {
196195 };
197196 const handleConfirmRejection = () => {
198197 changeCommentStatus (rejectComment .comment .id , " REJECTED" );
199- showToast ({ body: " Undo" , theme: ThemeColor .WARNING , duration: 3000 });
198+ showToast ({ body: " Undo" , theme: ThemeColor .WARNING , duration: 3000 });
200199 rejectComment .comment = null ;
201200 rejectComment .modalIsOpen = false ;
202201 };
203202
204203 const selectedRows = ref ([]);
205-
206204 const handleStatusChangeAll = (status ) => {
207205 selectedRows .value .forEach ((commentId ) => {
208206 changeCommentStatus (commentId, status);
209207 selectedRows .value = [];
210208 });
211209 };
212-
213210 return {
214211 comments: filteredComments,
215212 commentsIsLoading,
@@ -233,5 +230,6 @@ export default {
233230 CommentsFilterForm,
234231 VModal,
235232 },
233+
236234};
237235< / script>
0 commit comments