tweak style, refactor
This commit is contained in:
parent
b569d63412
commit
ad1c9cea66
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue