Jelajahi Sumber

Merge pull request #846 from pixelfed/frontend-ui-refactor

Frontend ui refactor
daniel 6 tahun lalu
induk
melakukan
8a928d6099
5 mengubah file dengan 6 tambahan dan 1 penghapusan
  1. TEMPAT SAMPAH
      public/css/app.css
  2. TEMPAT SAMPAH
      public/css/appdark.css
  3. TEMPAT SAMPAH
      public/js/timeline.js
  4. TEMPAT SAMPAH
      public/mix-manifest.json
  5. 6 1
      resources/assets/js/components/Timeline.vue

TEMPAT SAMPAH
public/css/app.css


TEMPAT SAMPAH
public/css/appdark.css


TEMPAT SAMPAH
public/js/timeline.js


TEMPAT SAMPAH
public/mix-manifest.json


+ 6 - 1
resources/assets/js/components/Timeline.vue

@@ -450,7 +450,12 @@
 			fetchNotifications() {
 				axios.get('/api/v1/notifications')
 				.then(res => {
-					this.notifications = res.data;
+					this.notifications = res.data.filter(n => {
+						if(n.type == 'share' && !status) {
+							return false;
+						}
+						return true;
+					});
 					$('.notification-card .loader').addClass('d-none');
 					$('.notification-card .contents').removeClass('d-none');
 				});