2018-03-14 00:14:57 +00:00
|
|
|
{{#if $isUserLoggedIn}}
|
2018-03-30 06:16:53 +00:00
|
|
|
<TimelinePage timeline="account/{{params.accountId}}">
|
|
|
|
<DynamicPageBanner title="" />
|
|
|
|
{{#if $currentAccountProfile && $currentVerifyCredentials}}
|
2018-03-23 15:39:09 +00:00
|
|
|
<AccountProfile account="{{$currentAccountProfile}}"
|
2018-03-14 00:14:57 +00:00
|
|
|
relationship="{{$currentAccountRelationship}}"
|
|
|
|
verifyCredentials="{{$currentVerifyCredentials}}"
|
|
|
|
/>
|
2018-03-30 06:16:53 +00:00
|
|
|
{{/if}}
|
|
|
|
<PinnedStatuses accountId="{{params.accountId}}" />
|
|
|
|
</TimelinePage>
|
2018-03-14 00:14:57 +00:00
|
|
|
{{else}}
|
2018-03-30 06:16:53 +00:00
|
|
|
<HiddenFromSSR>
|
|
|
|
<FreeTextLayout>
|
|
|
|
<h1>Profile</h1>
|
2018-03-14 00:14:57 +00:00
|
|
|
|
2018-03-30 06:16:53 +00:00
|
|
|
<p>A user timeline will appear here when logged in.</p>
|
|
|
|
</FreeTextLayout>
|
|
|
|
</HiddenFromSSR>
|
2018-03-14 00:14:57 +00:00
|
|
|
{{/if}}
|
|
|
|
<script>
|
2018-03-30 06:16:53 +00:00
|
|
|
import TimelinePage from '../../_components/TimelinePage.html'
|
2018-03-14 00:14:57 +00:00
|
|
|
import FreeTextLayout from '../../_components/FreeTextLayout.html'
|
|
|
|
import { store } from '../../_store/store.js'
|
|
|
|
import HiddenFromSSR from '../../_components/HiddenFromSSR'
|
|
|
|
import DynamicPageBanner from '../../_components/DynamicPageBanner.html'
|
|
|
|
import { updateProfileAndRelationship } from '../../_actions/accounts'
|
|
|
|
import AccountProfile from '../../_components/AccountProfile.html'
|
|
|
|
import PinnedStatuses from '../../_components/timeline/PinnedStatuses.html'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
oncreate() {
|
|
|
|
let accountId = this.get('params').accountId
|
|
|
|
updateProfileAndRelationship(accountId)
|
|
|
|
},
|
|
|
|
store: () => store,
|
|
|
|
computed: {
|
|
|
|
profileName: ($currentAccountProfile) => {
|
|
|
|
return ($currentAccountProfile && ('@' + $currentAccountProfile.acct)) || ''
|
|
|
|
},
|
|
|
|
shortProfileName: ($currentAccountProfile) => {
|
|
|
|
return ($currentAccountProfile && ('@' + $currentAccountProfile.username)) || ''
|
|
|
|
}
|
|
|
|
},
|
|
|
|
components: {
|
2018-03-30 06:16:53 +00:00
|
|
|
TimelinePage,
|
2018-03-14 00:14:57 +00:00
|
|
|
FreeTextLayout,
|
|
|
|
HiddenFromSSR,
|
|
|
|
DynamicPageBanner,
|
|
|
|
AccountProfile,
|
|
|
|
PinnedStatuses
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|