start on follow requests
This commit is contained in:
		
							parent
							
								
									9de2949cb7
								
							
						
					
					
						commit
						67e2e781f4
					
				
					 2 changed files with 10 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
{{#if $isUserLoggedIn}}
 | 
			
		||||
<DynamicPageBanner title="" />
 | 
			
		||||
  {{#if $currentAccountProfile}}
 | 
			
		||||
  {{#if $currentAccountProfile && $currentVerifyCredentials}}
 | 
			
		||||
    <AccountProfile profile="{{$currentAccountProfile}}"
 | 
			
		||||
                    relationship="{{$currentAccountRelationship}}"
 | 
			
		||||
                    verifyCredentials="{{$currentVerifyCredentials}}"
 | 
			
		||||
| 
						 | 
				
			
			@ -25,7 +25,6 @@
 | 
			
		|||
  import DynamicPageBanner from '../../_components/DynamicPageBanner.html'
 | 
			
		||||
  import { updateProfileAndRelationship } from '../../_actions/accounts'
 | 
			
		||||
  import AccountProfile from '../../_components/AccountProfile.html'
 | 
			
		||||
  import { updateVerifyCredentialsForInstance } from '../../_actions/instances'
 | 
			
		||||
  import PinnedStatuses from '../../_components/timeline/PinnedStatuses.html'
 | 
			
		||||
 | 
			
		||||
  export default {
 | 
			
		||||
| 
						 | 
				
			
			@ -33,7 +32,6 @@
 | 
			
		|||
      let accountId = this.get('params').accountId
 | 
			
		||||
      let instanceName = this.store.get('currentInstance')
 | 
			
		||||
      updateProfileAndRelationship(accountId)
 | 
			
		||||
      updateVerifyCredentialsForInstance(instanceName)
 | 
			
		||||
    },
 | 
			
		||||
    store: () => store,
 | 
			
		||||
    computed: {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -46,6 +46,12 @@
 | 
			
		|||
  </h2>
 | 
			
		||||
 | 
			
		||||
  <PageList label="Instance settings">
 | 
			
		||||
    {{#if isLockedAccount}}
 | 
			
		||||
    <PageListItem href="/requests"
 | 
			
		||||
                  label="Follow requests"
 | 
			
		||||
                  icon="#fa-user-plus"
 | 
			
		||||
     />
 | 
			
		||||
    {{/if}}
 | 
			
		||||
    <PageListItem href="/muted"
 | 
			
		||||
                  label="Muted users"
 | 
			
		||||
                  icon="#fa-volume-off"
 | 
			
		||||
| 
						 | 
				
			
			@ -100,6 +106,9 @@
 | 
			
		|||
      HiddenFromSSR,
 | 
			
		||||
      PageList,
 | 
			
		||||
      PageListItem
 | 
			
		||||
    },
 | 
			
		||||
    computed: {
 | 
			
		||||
      isLockedAccount: ($currentVerifyCredentials) => $currentVerifyCredentials && $currentVerifyCredentials.locked
 | 
			
		||||
    }
 | 
			
		||||
  };
 | 
			
		||||
</script>
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue