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

Only fetch notifications if logged in

sbkwgh преди 8 години
родител
ревизия
663b19dc29
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      src/components/NotificationButton.vue

+ 3 - 2
src/components/NotificationButton.vue

@@ -168,7 +168,7 @@
 			}
 		},
 		created () {
-			this.getNotifications()
+			if(this.$store.state.username) this.getNotifications()
 
 			socket.on('notification', notification => {
 				this.unreadCount++
@@ -371,7 +371,8 @@
 					background-color: rgba(white, 0.75);
 					font-weight: 300;
 					color: initial;
-					border: 0.0125rem solid $color__blue--darker;
+					border: 0.0125rem solid transparent;
+					background-color: $color__gray--primary;
 					padding: calc(0.75rem - 4*0.0125rem);
 				}
 				@at-root #{&}--two_figure {