diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-04-03 19:29:51 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2019-04-03 19:58:18 +0200 |
commit | 14bad3f472b2d9887db701409db93e511e9c6f50 (patch) | |
tree | 6ce458dad7520d4be620d414519dc1a2f4b4858d /app/javascript/flavours/glitch | |
parent | 3f5acc1ab3bc9c5a6c5805901a393ccd3457b909 (diff) |
Do not handle clicks in detailed status content
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r-- | app/javascript/flavours/glitch/components/status_content.js | 4 | ||||
-rw-r--r-- | app/javascript/flavours/glitch/features/status/components/detailed_status.js | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/components/status_content.js b/app/javascript/flavours/glitch/components/status_content.js index a62844185..ae14c949a 100644 --- a/app/javascript/flavours/glitch/components/status_content.js +++ b/app/javascript/flavours/glitch/components/status_content.js @@ -91,9 +91,9 @@ export default class StatusContent extends React.PureComponent { } handleMouseUp = (e) => { - const { parseClick } = this.props; + const { parseClick, disabled } = this.props; - if (!this.startXY) { + if (disabled || !this.startXY) { return; } diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.js b/app/javascript/flavours/glitch/features/status/components/detailed_status.js index e78f16c54..e9130b1b0 100644 --- a/app/javascript/flavours/glitch/features/status/components/detailed_status.js +++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.js @@ -228,6 +228,7 @@ export default class DetailedStatus extends ImmutablePureComponent { onExpandedToggle={onToggleHidden} parseClick={this.parseClick} onUpdate={this.handleChildUpdate} + disabled /> <div className='detailed-status__meta'> |