hiding actions when the action bar is working in dataview

This commit is contained in:
tarafanlin 2020-11-30 17:11:45 -08:00
parent 037f50f103
commit 49e30249ee

View File

@ -183,8 +183,10 @@ const STYLES_IMAGE_BOX = css`
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
${"" /* box-shadow: 0px 0px 0px 1px ${Constants.system.lightBorder} inset, ${
0 0 40px 0 ${Constants.system.shadow}; */} "" /* box-shadow: 0px 0px 0px 1px ${Constants.system.lightBorder} inset,
0 0 40px 0 ${Constants.system.shadow}; */
}
cursor: pointer; cursor: pointer;
position: relative; position: relative;
@ -468,13 +470,18 @@ export default class DataView extends React.Component {
</span> </span>
</div> </div>
<div css={STYLES_RIGHT}> <div css={STYLES_RIGHT}>
<ButtonPrimary {this.state.loading &&
transparent Object.values(this.state.loading).some((elem) => {
style={{ color: Constants.system.white }} return !!elem;
onClick={this._handleAddToSlate} }) ? null : (
> <ButtonPrimary
Add to slate transparent
</ButtonPrimary> style={{ color: Constants.system.white }}
onClick={this._handleAddToSlate}
>
Add to slate
</ButtonPrimary>
)}
<ButtonWarning <ButtonWarning
transparent transparent
style={{ marginLeft: 8, color: Constants.system.white }} style={{ marginLeft: 8, color: Constants.system.white }}