Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1229. Changed icon and improved appearance when loading #1231

Merged
merged 1 commit into from
Oct 28, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web/client/components/TOC/DefaultLayer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ var DefaultLayer = React.createClass({
<LayersTool key="toolzoom"
ref="target"
style={{"float": "right", cursor: "pointer"}}
glyph="search"
glyph="1-full-screen"
onClick={(node) => this.props.onZoom(node.bbox.bounds, node.bbox.crs)}/>
);
}
Expand All @@ -154,14 +154,14 @@ var DefaultLayer = React.createClass({
return (
<Node className="toc-default-layer" sortableStyle={this.props.sortableStyle} style={this.props.style} type="layer" {...other}>
<Title onClick={this.props.onToggle}/>
<InlineSpinner loading={this.props.node.loading}/>
<LayersTool key="loadingerror"
style={{"display": this.props.node.loadingError ? "block" : "none", color: "red", cursor: "default"}}
glyph="ban-circle"
tooltip="toc.loadingerror"
/>
{this.renderCollapsible()}
{this.renderTools()}
<InlineSpinner loading={this.props.node.loading}/>
<ConfirmModal ref="removelayer" className="clayer_removal_confirm_button" show= {this.state.showDeleteDialog} onHide={this.closeDeleteDialog} onClose={this.closeDeleteDialog} onConfirm={this.onConfirmDelete} titleText={this.props.confirmDeleteText} confirmText={this.props.confirmDeleteText} cancelText={<Message msgId="cancel" />} body={this.props.confirmDeleteMessage} />
</Node>
);
Expand Down