Add pref for whether to display full user names and tooltips

This commit is contained in:
Tusooa Zhu 2022-01-10 01:16:33 -05:00
parent 76547fe66d
commit 1d4b1b296e
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
6 changed files with 64 additions and 6 deletions

View file

@ -21,6 +21,8 @@ const defaultState = {
collapseMessageWithSubject: false,
greentext: false,
useAtIcon: false,
mentionLinkDisplay: 'short',
mentionLinkShowTooltip: true,
hideFilteredStatuses: false,
// bad name: actually hides posts of muted USERS
hideMutedPosts: false,
@ -101,6 +103,9 @@ const instance = {
return instanceDefaultProperties
.map(key => [key, state[key]])
.reduce((acc, [key, value]) => ({ ...acc, [key]: value }), {})
},
instanceDomain (state) {
return new URL(state.server).hostname
}
},
actions: {