start on follow requests

This commit is contained in:
Nolan Lawson 2018-03-16 09:05:34 -07:00
parent 9de2949cb7
commit 67e2e781f4
2 changed files with 10 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{{#if $isUserLoggedIn}} {{#if $isUserLoggedIn}}
<DynamicPageBanner title="" /> <DynamicPageBanner title="" />
{{#if $currentAccountProfile}} {{#if $currentAccountProfile && $currentVerifyCredentials}}
<AccountProfile profile="{{$currentAccountProfile}}" <AccountProfile profile="{{$currentAccountProfile}}"
relationship="{{$currentAccountRelationship}}" relationship="{{$currentAccountRelationship}}"
verifyCredentials="{{$currentVerifyCredentials}}" verifyCredentials="{{$currentVerifyCredentials}}"
@ -25,7 +25,6 @@
import DynamicPageBanner from '../../_components/DynamicPageBanner.html' import DynamicPageBanner from '../../_components/DynamicPageBanner.html'
import { updateProfileAndRelationship } from '../../_actions/accounts' import { updateProfileAndRelationship } from '../../_actions/accounts'
import AccountProfile from '../../_components/AccountProfile.html' import AccountProfile from '../../_components/AccountProfile.html'
import { updateVerifyCredentialsForInstance } from '../../_actions/instances'
import PinnedStatuses from '../../_components/timeline/PinnedStatuses.html' import PinnedStatuses from '../../_components/timeline/PinnedStatuses.html'
export default { export default {
@ -33,7 +32,6 @@
let accountId = this.get('params').accountId let accountId = this.get('params').accountId
let instanceName = this.store.get('currentInstance') let instanceName = this.store.get('currentInstance')
updateProfileAndRelationship(accountId) updateProfileAndRelationship(accountId)
updateVerifyCredentialsForInstance(instanceName)
}, },
store: () => store, store: () => store,
computed: { computed: {

View File

@ -46,6 +46,12 @@
</h2> </h2>
<PageList label="Instance settings"> <PageList label="Instance settings">
{{#if isLockedAccount}}
<PageListItem href="/requests"
label="Follow requests"
icon="#fa-user-plus"
/>
{{/if}}
<PageListItem href="/muted" <PageListItem href="/muted"
label="Muted users" label="Muted users"
icon="#fa-volume-off" icon="#fa-volume-off"
@ -100,6 +106,9 @@
HiddenFromSSR, HiddenFromSSR,
PageList, PageList,
PageListItem PageListItem
},
computed: {
isLockedAccount: ($currentVerifyCredentials) => $currentVerifyCredentials && $currentVerifyCredentials.locked
} }
}; };
</script> </script>