diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-04-15 22:23:05 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2019-04-17 18:40:40 +0200 |
commit | e3c1472040105651fe55158b741c7ba92c1a7332 (patch) | |
tree | 6464148676a8b91cb181835b851e2882448824af /app/javascript/flavours/glitch/features/status/index.js | |
parent | 8d57c0e70ea76b2f482c0919fc815d40352ef477 (diff) |
Shift+click on column Back button to return to last pinable column
Diffstat (limited to 'app/javascript/flavours/glitch/features/status/index.js')
-rw-r--r-- | app/javascript/flavours/glitch/features/status/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/status/index.js b/app/javascript/flavours/glitch/features/status/index.js index 7f8f02188..a0a9b986c 100644 --- a/app/javascript/flavours/glitch/features/status/index.js +++ b/app/javascript/flavours/glitch/features/status/index.js @@ -331,7 +331,9 @@ export default class Status extends ImmutablePureComponent { } handleHotkeyOpenProfile = () => { - this.context.router.history.push(`/accounts/${this.props.status.getIn(['account', 'id'])}`); + let state = {...this.context.router.history.location.state}; + state.mastodonBackSteps = (state.mastodonBackSteps || 0) + 1; + this.context.router.history.push(`/accounts/${this.props.status.getIn(['account', 'id'])}`, state); } handleMoveUp = id => { |