hide delete & cancel button on stickers are they weren't visible before
This commit is contained in:
parent
92668628ec
commit
f189ff54a8
2 changed files with 3 additions and 2 deletions
|
@ -579,8 +579,8 @@ export default class AppTile extends React.Component {
|
||||||
// editing is done in scalar
|
// editing is done in scalar
|
||||||
const canUserModify = this._canUserModify();
|
const canUserModify = this._canUserModify();
|
||||||
const showEditButton = Boolean(this._scalarClient && canUserModify);
|
const showEditButton = Boolean(this._scalarClient && canUserModify);
|
||||||
const showDeleteButton = canUserModify;
|
const showDeleteButton = (this.props.showDelete === undefined || this.props.showDelete) && canUserModify;
|
||||||
const showCancelButton = !showDeleteButton;
|
const showCancelButton = (this.props.showCancel === undefined || this.props.showCancel) && !showDeleteButton;
|
||||||
// Picture snapshot - only show button when apps are maximised.
|
// Picture snapshot - only show button when apps are maximised.
|
||||||
const showPictureSnapshotButton = this._hasCapability('m.capability.screenshot') && this.props.show;
|
const showPictureSnapshotButton = this._hasCapability('m.capability.screenshot') && this.props.show;
|
||||||
const showMinimiseButton = this.props.showMinimise && this.props.show;
|
const showMinimiseButton = this.props.showMinimise && this.props.show;
|
||||||
|
|
|
@ -226,6 +226,7 @@ export default class Stickerpicker extends React.Component {
|
||||||
showTitle={false}
|
showTitle={false}
|
||||||
showMinimise={true}
|
showMinimise={true}
|
||||||
showDelete={false}
|
showDelete={false}
|
||||||
|
showCancel={false}
|
||||||
showPopout={false}
|
showPopout={false}
|
||||||
onMinimiseClick={this._onHideStickersClick}
|
onMinimiseClick={this._onHideStickersClick}
|
||||||
handleMinimisePointerEvents={true}
|
handleMinimisePointerEvents={true}
|
||||||
|
|
Loading…
Reference in a new issue