1
0
mirror of https://github.com/nolanlawson/pinafore synced 2024-12-12 02:07:26 +01:00

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)