aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/button/FontIconBox.tsx
diff options
context:
space:
mode:
authorgeireann <60007097+geireann@users.noreply.github.com>2021-08-19 11:24:54 -0400
committergeireann <60007097+geireann@users.noreply.github.com>2021-08-19 11:24:54 -0400
commit94cfa66db4d667cd0dae9c6ddbe152cbff27819f (patch)
treeaf8bef314e4d3e4124d7214cd37c6f37812b2694 /src/client/views/nodes/button/FontIconBox.tsx
parent917ebb4a7b6840f57abbf8dbcc197919f3ee3aac (diff)
updates
Diffstat (limited to 'src/client/views/nodes/button/FontIconBox.tsx')
-rw-r--r--src/client/views/nodes/button/FontIconBox.tsx11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/client/views/nodes/button/FontIconBox.tsx b/src/client/views/nodes/button/FontIconBox.tsx
index 2c6369e9f..9e7608dc3 100644
--- a/src/client/views/nodes/button/FontIconBox.tsx
+++ b/src/client/views/nodes/button/FontIconBox.tsx
@@ -27,7 +27,8 @@ export enum ButtonType {
ClickButton = "clickBtn",
DoubleButton = "dblBtn",
ToggleButton = "tglBtn",
- ColorButton = "colorBtn"
+ ColorButton = "colorBtn",
+ ToolButton = "toolBtn"
}
export interface ButtonProps extends FieldViewProps {
@@ -254,6 +255,14 @@ export class FontIconBox extends DocComponent<ButtonProps, FontIconDocument>(Fon
</div>
);
break;
+ case ButtonType.ToolButton:
+ button = (
+ <div className={`menuButton ${this.type}`} style={{ opacity: canClick ? 1 : 0.4, backgroundColor: backgroundColor, color: color }}>
+ <FontAwesomeIcon className={`fontIconBox-icon-${this.type}`} icon={this.icon} color={color} />
+ {label}
+ </div>
+ );
+ break;
case ButtonType.ToggleButton:
button = (
<div className={`menuButton ${this.type}`} style={{ opacity: canClick ? 1 : 0.4, backgroundColor: toggle ? backgroundColor : undefined }}>