forked from cybrespace/pinafore
tweak style, refactor
This commit is contained in:
parent
b569d63412
commit
ad1c9cea66
|
@ -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;
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue