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; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin: 0 20px 20px; margin: 20px 20px 20px;
} }
h1.dynamic-page-title { h1.dynamic-page-title {
margin: 0; margin: 0;

View File

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