mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-11 06:30:46 +00:00
Merge pull request #1331 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
f2ff1c584b
3 changed files with 2 additions and 7 deletions
BIN
public/js/activity.js
vendored
BIN
public/js/activity.js
vendored
Binary file not shown.
Binary file not shown.
|
@ -113,11 +113,7 @@ export default {
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
fetchNotifications() {
|
fetchNotifications() {
|
||||||
axios.get('/api/v1/notifications', {
|
axios.get('/api/v1/notifications')
|
||||||
params: {
|
|
||||||
pg: false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.then(res => {
|
.then(res => {
|
||||||
let data = res.data.filter(n => {
|
let data = res.data.filter(n => {
|
||||||
if(n.type == 'share' && !status) {
|
if(n.type == 'share' && !status) {
|
||||||
|
@ -140,8 +136,7 @@ export default {
|
||||||
}
|
}
|
||||||
axios.get('/api/v1/notifications', {
|
axios.get('/api/v1/notifications', {
|
||||||
params: {
|
params: {
|
||||||
page: this.notificationCursor,
|
page: this.notificationCursor
|
||||||
pg: false
|
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if(res.data.length > 0) {
|
if(res.data.length > 0) {
|
||||||
|
|
Loading…
Reference in a new issue