mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-19 13:01:26 +00:00
Merge pull request #846 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
8a928d6099
5 changed files with 6 additions and 1 deletions
BIN
public/css/app.css
vendored
BIN
public/css/app.css
vendored
Binary file not shown.
BIN
public/css/appdark.css
vendored
BIN
public/css/appdark.css
vendored
Binary file not shown.
BIN
public/js/timeline.js
vendored
BIN
public/js/timeline.js
vendored
Binary file not shown.
Binary file not shown.
|
@ -450,7 +450,12 @@
|
||||||
fetchNotifications() {
|
fetchNotifications() {
|
||||||
axios.get('/api/v1/notifications')
|
axios.get('/api/v1/notifications')
|
||||||
.then(res => {
|
.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 .loader').addClass('d-none');
|
||||||
$('.notification-card .contents').removeClass('d-none');
|
$('.notification-card .contents').removeClass('d-none');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue