Add own profile to profile dropdown

bundle-emoji
Alex Gleason 2021-03-27 12:16:45 -05:00
rodzic fce37be8a4
commit 0ed3e0e3de
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -95,13 +95,13 @@ class ProfileDropdown extends React.PureComponent {
let menu = [];
menu.push({ text: this.renderAccount(account), to: `/@${account.get('acct')}` });
otherAccounts.forEach(account => {
menu.push({ text: this.renderAccount(account), action: this.handleSwitchAccount(account) });
});
if (otherAccounts.size > 0) {
menu.push(null);
}
menu.push(null);
menu.push({ text: intl.formatMessage(messages.add), to: '/auth/sign_in' });
menu.push({ text: intl.formatMessage(messages.logout, { acct: account.get('acct') }), to: '/auth/sign_out', action: this.handleLogOut });