tweak style, refactor

This commit is contained in:
Nolan Lawson 2018-01-27 18:41:41 -08:00
parent b569d63412
commit ad1c9cea66
2 changed files with 6 additions and 6 deletions

View file

@ -9,7 +9,7 @@
display: flex;
align-items: center;
justify-content: space-between;
margin: 0 20px 20px;
margin: 20px 20px 20px;
}
h1.dynamic-page-title {
margin: 0;

View file

@ -41,16 +41,16 @@
this.set({cachedAccount: account})
})
getAccount(currentInstance, accessToken, accountId).then(account => {
this.set({account: account})
this.set({remoteAccount: account})
})
},
store: () => store,
computed: {
remoteProfileName: (account) => {
return account && ('@' + account.acct)
remoteProfileName: (remoteAccount) => {
return remoteAccount && ('@' + remoteAccount.acct)
},
remoteShortProfileName: (account) => {
return account && ('@' + account.username)
remoteShortProfileName: (remoteAccount) => {
return remoteAccount && ('@' + remoteAccount.username)
},
cachedProfileName: (cachedAccount) => {
return cachedAccount && ('@' + cachedAccount.acct)