From f690ffccbc6811579e40e14be1bb332b06dfdd35 Mon Sep 17 00:00:00 2001 From: noellabo Date: Tue, 2 Feb 2021 10:49:05 +0900 Subject: [PATCH] Fix logout --- app/javascript/mastodon/features/compose/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/features/compose/index.js b/app/javascript/mastodon/features/compose/index.js index a0f53d627..e7e0fb423 100644 --- a/app/javascript/mastodon/features/compose/index.js +++ b/app/javascript/mastodon/features/compose/index.js @@ -112,7 +112,7 @@ class Compose extends React.PureComponent { 'PUBLIC': { to: '/timelines/public', title: formatMessage(messages.public), label: formatMessage(messages.short_public), icon_id: 'globe' }, 'LIST': { to: '/lists', title: formatMessage(messages.lists), label: formatMessage(messages.short_lists), icon_id: 'list-ul' }, 'PREFERENCES': { href: '/settings/preferences', title: formatMessage(messages.preferences), label: formatMessage(messages.short_preferences), icon_id: 'cog' }, - 'SIGN_OUT': { href: '/auth/sign_out', title: formatMessage(messages.logout), label: formatMessage(messages.short_logout), icon_id: 'sign-out' }, + 'SIGN_OUT': { href: '/auth/sign_out', title: formatMessage(messages.logout), label: formatMessage(messages.short_logout), icon_id: 'sign-out', method: 'delete' }, }; const { href, to, title, label, icon_id, method } = tabParams[id]; @@ -121,7 +121,7 @@ class Compose extends React.PureComponent { if (href) { return ( - {icon}{label} + {icon}{label} ); } else { return (