浏览代码

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

Frontend ui refactor
daniel 6 年之前
父节点
当前提交
8a928d6099
共有 5 个文件被更改,包括 6 次插入1 次删除
  1. 二进制
      public/css/app.css
  2. 二进制
      public/css/appdark.css
  3. 二进制
      public/js/timeline.js
  4. 二进制
      public/mix-manifest.json
  5. 6 1
      resources/assets/js/components/Timeline.vue

二进制
public/css/app.css


二进制
public/css/appdark.css


二进制
public/js/timeline.js


二进制
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');
 				});