Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F325787
notifications_tab.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
855 B
Referenced Files
None
Subscribers
None
notifications_tab.js
View Options
import
BooleanSetting
from
'../helpers/boolean_setting.vue'
import
SharedComputedObject
from
'../helpers/shared_computed_object.js'
const
NotificationsTab
=
{
data
()
{
return
{
activeTab
:
'profile'
,
notificationSettings
:
this
.
$store
.
state
.
users
.
currentUser
.
notification_settings
,
newDomainToMute
:
''
}
},
components
:
{
BooleanSetting
},
computed
:
{
user
()
{
return
this
.
$store
.
state
.
users
.
currentUser
},
canReceiveReports
()
{
if
(
!
this
.
user
)
{
return
false
}
return
this
.
user
.
privileges
.
includes
(
'reports_manage_reports'
)
},
...
SharedComputedObject
()
},
methods
:
{
updateNotificationSettings
()
{
this
.
$store
.
state
.
api
.
backendInteractor
.
updateNotificationSettings
({
settings
:
this
.
notificationSettings
})
}
}
}
export
default
NotificationsTab
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 24, 4:24 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
98857
Default Alt Text
notifications_tab.js (855 B)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment