disable selectionMark feature (#337)
* disable selectionMark feature * refactor: normalizeFieldType - no need to comment it since it will never trigger
This commit is contained in:
Родитель
3cc5267ef8
Коммит
0541a32cce
|
@ -275,5 +275,10 @@ div.circle-picker-container {
|
|||
}
|
||||
|
||||
.loading-tag {
|
||||
height: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
// * temp disabling SelectionMark feature
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -503,8 +503,9 @@ export class TagInput extends React.Component<ITagInputProps, ITagInputState> {
|
|||
|
||||
private getTagCategory = (tagType: string) => {
|
||||
switch (tagType) {
|
||||
case FieldType.SelectionMark:
|
||||
return "checkbox";
|
||||
// * temp disabling SelectionMark feature
|
||||
// case FieldType.SelectionMark:
|
||||
// return "checkbox";
|
||||
default:
|
||||
return "text";
|
||||
}
|
||||
|
@ -665,6 +666,8 @@ export class TagInput extends React.Component<ITagInputProps, ITagInputState> {
|
|||
isChecked: type === tag.type,
|
||||
onClick: this.onTypeSelect,
|
||||
disabled: !isCompatible,
|
||||
// * temp disabling SelectionMark feature
|
||||
className: type === FieldType.SelectionMark ? "hidden" : "",
|
||||
} as IContextualMenuItem;
|
||||
});
|
||||
}
|
||||
|
|
|
@ -44,14 +44,15 @@ export const CanvasCommandBar: React.FunctionComponent<ICanvasCommandBarProps> =
|
|||
isChecked: props.layers["tables"],
|
||||
onClick: () => props.handleLayerChange("tables"),
|
||||
},
|
||||
{
|
||||
key: "selectionMark",
|
||||
text: strings.editorPage.canvas.canvasCommandBar.items.layers.subMenuItems.selectionMarks,
|
||||
canCheck: true,
|
||||
iconProps: { iconName: "CheckboxComposite" },
|
||||
isChecked: props.layers["checkboxes"],
|
||||
onClick: () => props.handleLayerChange("checkboxes"),
|
||||
},
|
||||
// * temp disabling SelectionMark feature
|
||||
// {
|
||||
// key: "selectionMark",
|
||||
// text: strings.editorPage.canvas.canvasCommandBar.items.layers.subMenuItems.selectionMarks,
|
||||
// canCheck: true,
|
||||
// iconProps: { iconName: "CheckboxComposite" },
|
||||
// isChecked: props.layers["checkboxes"],
|
||||
// onClick: () => props.handleLayerChange("checkboxes"),
|
||||
// },
|
||||
{
|
||||
key: "Label",
|
||||
text: strings.editorPage.canvas.canvasCommandBar.items.layers.subMenuItems.labels,
|
||||
|
|
Загрузка…
Ссылка в новой задаче