Преглед на файлове

removendo redirect desncessario + exibindo fotos dos usuarios

Gustavo Zanatta преди 3 дни
родител
ревизия
bfccdc9314
променени са 2 файла, в които са добавени 10 реда и са изтрити 9 реда
  1. 7 7
      src/pages/notifications/NotificationsPage.vue
  2. 3 2
      src/pages/search/SearchPage.vue

+ 7 - 7
src/pages/notifications/NotificationsPage.vue

@@ -167,12 +167,12 @@ const handleNotification = async (notification) => {
     await markAsRead(notification.id)
   }
 
-  if (
-    notification.origin === 'schedule'
-    && notification.origin_id
-  ) {
-    router.push(`/schedule/${notification.origin_id}`)
-  }
+  // if (
+  //   notification.origin === 'schedule'
+  //   && notification.origin_id
+  // ) {
+  //   router.push(`/schedule/${notification.origin_id}`)
+  // }
 }
 
 const getNotificationIcon = (type) => {
@@ -315,6 +315,6 @@ const getNotificationIcon = (type) => {
 }
 
 .status-dot.active {
-  background: #d8d8d8;
+  background: #1fa31b;
 }
 </style>

+ 3 - 2
src/pages/search/SearchPage.vue

@@ -90,8 +90,9 @@
           <q-card-section class="row no-wrap q-pa-sm">
             <div class="row no-wrap full-width">
               <div class="col-2">
-                <q-avatar :style="avatarColors[p.provider_id % avatarColors.length]" class="">
-                  {{ p.provider_name?.slice(0,1).toUpperCase() ?? '—' }}
+                <q-avatar :style="p.profile_media_url ? {} : avatarColors[p.provider_id % avatarColors.length]">
+                  <img v-if="p.profile_media_url" :src="p.profile_media_url" style="object-fit: cover; width: 100%; height: 100%;" />
+                  <span v-else>{{ p.provider_name?.slice(0,1).toUpperCase() ?? '—' }}</span>
                 </q-avatar>
               </div>