Procházet zdrojové kódy

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

Frontend ui refactor
daniel před 6 roky
rodič
revize
8a928d6099
5 změnil soubory, kde provedl 6 přidání a 1 odebrání
  1. binární
      public/css/app.css
  2. binární
      public/css/appdark.css
  3. binární
      public/js/timeline.js
  4. binární
      public/mix-manifest.json
  5. 6 1
      resources/assets/js/components/Timeline.vue

binární
public/css/app.css


binární
public/css/appdark.css


binární
public/js/timeline.js


binární
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');
 				});