somewhat workign version still with fixture
This commit is contained in:
parent
ab2c2c66bf
commit
a4e3cccf1c
9 changed files with 177 additions and 99 deletions
|
|
@ -76,6 +76,9 @@ const Notification = {
|
|||
this.$store.dispatch('dismissNotificationLocal', { id: this.notification.id })
|
||||
this.$store.dispatch('removeFollowRequest', this.user)
|
||||
})
|
||||
},
|
||||
testlog (a) {
|
||||
console.log(a)
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
|
|||
|
|
@ -56,6 +56,34 @@
|
|||
margin: 0 0.1em;
|
||||
}
|
||||
|
||||
.report-content {
|
||||
margin: 0.5em 0;
|
||||
}
|
||||
|
||||
.reported-status {
|
||||
border: 1px solid $fallback--faint;
|
||||
border-color: var(--faint, $fallback--faint);
|
||||
border-radius: $fallback--inputRadius;
|
||||
border-radius: var(--inputRadius, $fallback--inputRadius);
|
||||
color: $fallback--text;
|
||||
color: var(--text, $fallback--text);
|
||||
display: block;
|
||||
padding: 0.5em;
|
||||
margin: 0.5em 0;
|
||||
|
||||
.status-content {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.reported-status-name {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.reported-status-timeago {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
&.-type--repeat .type-icon {
|
||||
color: $fallback--cGreen;
|
||||
color: var(--cGreen, $fallback--cGreen);
|
||||
|
|
|
|||
|
|
@ -106,6 +106,9 @@
|
|||
</i18n>
|
||||
</small>
|
||||
</span>
|
||||
<span v-if="notification.type === 'pleroma:report'">
|
||||
<small>{{ $t('notifications.submitted_report') }}</small>
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
v-if="isStatusNotification"
|
||||
|
|
@ -180,6 +183,37 @@
|
|||
@{{ notification.target.screen_name }}
|
||||
</router-link>
|
||||
</div>
|
||||
<div
|
||||
v-else-if="notification.type === 'pleroma:report'"
|
||||
>
|
||||
<small>Reported user:</small>
|
||||
<router-link :to="generateUserProfileLink(notification.report.acct)">
|
||||
@{{ notification.report.acct.screen_name }}
|
||||
</router-link>
|
||||
<!-- eslint-disable vue/no-v-html -->
|
||||
<div
|
||||
class="report-content"
|
||||
v-html="notification.report.content"
|
||||
/>
|
||||
<div v-if="notification.report.statuses.length">
|
||||
<small>Reported statuses:</small>
|
||||
<!-- eslint-enable vue/no-v-html -->
|
||||
<router-link
|
||||
v-for="status in notification.report.statuses"
|
||||
:key="status.id"
|
||||
:to="{ name: 'conversation', params: { id: status.id } }"
|
||||
class="reported-status"
|
||||
>
|
||||
<span class="reported-status-name">{{ status.user.name }}</span>
|
||||
<Timeago
|
||||
:time="status.created_at"
|
||||
:auto-update="240"
|
||||
class="reported-status-timeago faint"
|
||||
/>
|
||||
<status-content :status="status" />
|
||||
</router-link>
|
||||
</div>
|
||||
</div>
|
||||
<template v-else>
|
||||
<status-content
|
||||
class="faint"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue