mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-21 14:47:46 -04:00
Tweak prompt button icon
This commit is contained in:
@@ -86,12 +86,16 @@ class PromptButton extends PureComponent {
|
||||
let innerMsg;
|
||||
if (state === STATE_ASK && addIcon) {
|
||||
innerMsg = (
|
||||
<span className="danger">
|
||||
<i className="fa fa-exclamation-circle"/> {CONFIRM_MESSAGE}
|
||||
<span className="warning" title="Click again to confirm">
|
||||
<i className="fa fa-minus-circle"/> {CONFIRM_MESSAGE}
|
||||
</span>
|
||||
);
|
||||
} else if (state === STATE_ASK) {
|
||||
innerMsg = <span className="danger">{CONFIRM_MESSAGE}</span>;
|
||||
innerMsg = (
|
||||
<span className="warning" title="Click again to confirm">
|
||||
{CONFIRM_MESSAGE}
|
||||
</span>
|
||||
);
|
||||
} else if (state === STATE_DONE) {
|
||||
innerMsg = DONE_MESSAGE;
|
||||
} else {
|
||||
|
||||
@@ -99,8 +99,7 @@ class SidebarRequestRow extends PureComponent {
|
||||
node = (
|
||||
<li className={classes}>
|
||||
<div className="sidebar__item" tabIndex={0}>
|
||||
<button className="sidebar__clickable"
|
||||
onClick={this._handleRequestCreateFromEmpty}>
|
||||
<button className="sidebar__clickable" onClick={this._handleRequestCreateFromEmpty}>
|
||||
<em className="faded">click to add first request...</em>
|
||||
</button>
|
||||
</div>
|
||||
@@ -123,11 +122,11 @@ class SidebarRequestRow extends PureComponent {
|
||||
onEditStart={this._handleEditStart}
|
||||
onSubmit={this._handleRequestUpdateName}/>
|
||||
{request.description && (
|
||||
<button title="View description"
|
||||
<a title="View description"
|
||||
onClick={this._handleClickDescription}
|
||||
className="icon space-left txt-sm super-faint">
|
||||
<i className="fa fa-file-text-o"/>
|
||||
</button>
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user