#436: remove clear & dismiss UI updates

This commit is contained in:
dave 2019-03-14 11:57:24 -04:00
parent 06fda27511
commit 52326e6551
9 changed files with 4 additions and 82 deletions

View file

@ -21,9 +21,6 @@ const Notification = {
},
userProfileLink (user) {
return generateProfileLink(user.id, user.screen_name, this.$store.state.instance.restrictedNicknames)
},
dismiss () {
this.$store.dispatch('dismissNotifications', { id: this.notification.id })
}
},
computed: {

View file

@ -3,8 +3,6 @@
v-if="notification.type === 'mention'"
:compact="true"
:statusoid="notification.status"
isNotification="true"
@dismissNotification="dismiss"
>
</status>
<div class="non-mention" :class="[userClass, { highlighted: userStyle }]" :style="[ userStyle ]"v-else>
@ -40,9 +38,6 @@
<timeago :since="notification.action.created_at" :auto-update="240"></timeago>
</router-link>
</div>
<span class="button-icon" @click.prevent="dismiss">
<i class="button-icon icon-cancel delete-status"></i>
</span>
</span>
<div class="follow-text" v-if="notification.type === 'follow'">
<router-link :to="userProfileLink(notification.action.user)">

View file

@ -55,9 +55,6 @@ const Notifications = {
markAsSeen () {
this.$store.dispatch('markNotificationsAsSeen')
},
clear () {
this.$store.dispatch('clearNotifications')
},
fetchOlderNotifications () {
const store = this.$store
const credentials = store.state.users.currentUser.credentials

View file

@ -9,8 +9,7 @@
<div @click.prevent class="loadmore-error alert error" v-if="error">
{{$t('timeline.error_fetching')}}
</div>
<!-- <button v-if="unseenCount" @click.prevent="markAsSeen" class="read-button">{{$t('notifications.read')}}</button> -->
<button v-if="notifications.length" @click.prevent="clear" class="read-button">{{$t('notifications.clear')}}</button>
<button v-if="unseenCount" @click.prevent="markAsSeen" class="read-button">{{$t('notifications.read')}}</button>
</div>
<div class="panel-body">
<div v-for="notification in visibleNotifications" :key="notification.action.id + notification.id" class="notification" :class='{"unseen": !notification.seen}'>

View file

@ -25,8 +25,7 @@ const Status = {
'replies',
'isPreview',
'noHeading',
'inlineExpanded',
'isNotification'
'inlineExpanded'
],
data () {
return {
@ -366,9 +365,6 @@ const Status = {
setMedia () {
const attachments = this.attachmentSize === 'hide' ? this.status.attachments : this.galleryAttachments
return () => this.$store.dispatch('setMedia', attachments)
},
dismissNotification () {
this.$emit('dismissNotification')
}
},
watch: {

View file

@ -52,9 +52,6 @@
<a :href="status.external_url" target="_blank" v-if="!status.is_local && !isPreview" class="source_url" title="Source">
<i class="button-icon icon-link-ext-alt"></i>
</a>
<span class="button-icon" v-if="isNotification" @click.prevent="dismissNotification">
<i class="button-icon icon-cancel delete-status"></i>
</span>
<template v-if="expandable && !isPreview">
<a href="#" @click.prevent="toggleExpanded" title="Expand">
<i class="button-icon icon-plus-squared"></i>