diff options
author | Geireann Lindfield Roberts <60007097+geireann@users.noreply.github.com> | 2023-07-18 01:00:46 -0400 |
---|---|---|
committer | Geireann Lindfield Roberts <60007097+geireann@users.noreply.github.com> | 2023-07-18 01:00:46 -0400 |
commit | 75a7c44f9615c4ac024403011a968f8b3038c500 (patch) | |
tree | dc38e44423d1080b7681f46741d27cc6e02bbc3c /src/client/views/nodes/FontIconBox/FontIconBox.tsx | |
parent | 71fb3eca3d5ebb90d2ab2cfe09a864a4fab9d625 (diff) |
added number inputs to right hand side
Diffstat (limited to 'src/client/views/nodes/FontIconBox/FontIconBox.tsx')
-rw-r--r-- | src/client/views/nodes/FontIconBox/FontIconBox.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/nodes/FontIconBox/FontIconBox.tsx b/src/client/views/nodes/FontIconBox/FontIconBox.tsx index 2958fa737..e98faf2a0 100644 --- a/src/client/views/nodes/FontIconBox/FontIconBox.tsx +++ b/src/client/views/nodes/FontIconBox/FontIconBox.tsx @@ -20,6 +20,7 @@ import { OpenWhere } from '../DocumentView'; import { RichTextMenu } from '../formattedText/RichTextMenu'; import './FontIconBox.scss'; import { SelectedDocView } from '../../selectedDoc'; +import { Utils } from '../../../../Utils'; export enum ButtonType { TextButton = 'textBtn', @@ -214,9 +215,9 @@ export class FontIconBox extends DocComponent<ButtonProps>() { console.log("doc selected", selected.title); dropdown = false; if (selectedDocs.length > 1) { - text = selectedDocs.length + " documents selected" + text = selectedDocs.length + " selected" } else { - text = selected.type === DocumentType.RTF ? 'Text' : StrCast(selected.type); + text = Utils.cleanDocumentType(StrCast(selected.type) as DocumentType); icon = Doc.toIcon(selected); } return <Popup |