-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feature excel replace table name with template name #586
Feature excel replace table name with template name #586
Conversation
…s' into Feature_Excel_ReplaceTableNameWithTemplateName
@@ -121,6 +123,11 @@ let throttleAndDebounce(fn: 'a -> unit, timespan: int) = | |||
timespan | |||
id <- Some timeoutId | |||
|
|||
let charsToRemove = " -/\()[]{}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regex.Replace with "\s"
@@ -212,6 +215,13 @@ type Widget = | |||
static member Templates (model: Model, dispatch, rmv: MouseEvent -> unit) = | |||
let templates, setTemplates = React.useState(model.ProtocolState.Templates) | |||
let config, setConfig = React.useState(TemplateFilterConfig.init) | |||
let selectedColumnsLength = | |||
if model.ProtocolState.TemplateSelected.IsSome then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Option.map |> Option.defaltValue
|> Option.defaultValue "" | ||
|
||
module TableImport = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace as simple bool array
Enables the takeover of the template that has been added to the table