22 <header v-if =" !$route.meta.hideHeader" class =" bg-white" >
33 <nav aria-label =" Global" class =" flex w-full items-center justify-between py-4 lg:px-8 bg-gray-50" >
44 <div class =" flex items-center lg:flex-1" >
5- <router-link to = " / " class =" flex items-center" >
5+ <router-link class =" flex items-center" to = " / " >
66 <img alt =" issuefy logo" class =" h-16 w-auto" src =" ./assets/issuefy-removebg_logo.png" />
77 <div v-if =" $route.meta.showBreadcrumbs" class =" ml-4 flex items-center space-x-2" >
88 <router-link :to =" `/${$route.params.org}`" class =" text-sm font-medium text-gray-900 hover:text-blue-600" >
2222 </div >
2323 <div v-if =" isLoggedIn" class =" hidden lg:flex lg:items-center lg:gap-x-6" >
2424 <div class =" relative" >
25- <button @click = " toggleNotifications " class = " relative " >
25+ <button class = " relative " @click = " toggleNotifications " >
2626 <font-awesome-icon icon =" bell" style =" color : #B197FC ;" />
2727 <span v-if =" unreadCount > 0"
2828 class =" absolute -top-1 -right-1 bg-red-600 text-white text-xs rounded-full px-1" >
4848 </div >
4949 <div class =" flex justify-between items-center" >
5050 <span class =" text-xs text-gray-500" >{{ notification.formattedTime }}</span >
51- <button v-if =" !notification.read" @click = " markAsRead(notification.userNotificationId) "
52- class = " text-xs text-purple-500 hover:text-purple-700 " >
51+ <button v-if =" !notification.read" class = " text-xs text-purple-500 hover:text-purple-700 "
52+ @click = " markAsRead(notification.userNotificationId) " >
5353 읽음
5454 </button >
5555 </div >
5656 </div >
5757 </div >
5858 <div v-if =" notifications.length > visibleNotifications.length" class =" p-2 text-center" >
59- <button @click.stop = " loadMoreNotifications " class =" text-purple-500 hover:text-purple-700" >더 보기</button >
59+ <button class =" text-purple-500 hover:text-purple-700" @click.stop = " loadMoreNotifications " >더 보기</button >
6060 </div >
6161 </div >
6262 <div v-else class =" p-4 text-gray-500" >
6363 알림이 없습니다.
6464 </div >
6565 <div v-if =" hasUnreadNotifications" class =" p-2 border-t border-gray-200" >
66- <button @click = " markAllAsRead " class =" w-full text-center text-purple-500 hover:text-purple-700" >모두 읽음
66+ <button class =" w-full text-center text-purple-500 hover:text-purple-700" @click = " markAllAsRead " >모두 읽음
6767 </button >
6868 </div >
6969 </div >
7474 <div v-if =" isLoggedIn" class =" mx-5" ></div >
7575 <div v-if =" isLoggedIn" class =" flex items-center gap-x-4" >
7676 <div class =" flex items-center space-x-2" >
77- <img :src =" avatarURL" class =" w-10 h-10 rounded-full" alt = " User Avatar " >
78- <router-link to = " /settings " class =" text-sm font-semibold leading-6 text-blue-600 hover:underline" >
77+ <img :src =" avatarURL" alt = " User Avatar " class =" w-10 h-10 rounded-full" >
78+ <router-link class =" text-sm font-semibold leading-6 text-blue-600 hover:underline" to = " /settings " >
7979 {{ userName }}
8080 </router-link >
8181 </div >
@@ -175,13 +175,13 @@ export default {
175175 const markNotificationsAsRead = async (userNotificationIds ) => {
176176 try {
177177 const response = await axios .patch (
178- ` ${ process .env .VUE_APP_API_URL } /notifications` ,
179- { userNotificationIds },
180- {
181- headers: {
182- ' Authorization' : ` Bearer ${ authStore .accessToken } `
178+ ` ${ process .env .VUE_APP_API_URL } /notifications` ,
179+ {userNotificationIds},
180+ {
181+ headers: {
182+ ' Authorization' : ` Bearer ${ authStore .accessToken } `
183+ }
183184 }
184- }
185185 );
186186
187187 if (response .status === 200 ) {
@@ -204,8 +204,8 @@ export default {
204204
205205 const markAllAsRead = async () => {
206206 const unreadNotificationIds = notifications .value
207- .filter (n => ! n .read )
208- .map (n => n .userNotificationId );
207+ .filter (n => ! n .read )
208+ .map (n => n .userNotificationId );
209209 if (unreadNotificationIds .length > 0 ) {
210210 await markNotificationsAsRead (unreadNotificationIds);
211211 }
0 commit comments