Compare commits

...

2 Commits

Author SHA1 Message Date
Gregory Schier
974425afee Fix JSONPath/XPath filtering 2024-09-26 06:45:03 -07:00
Gregory Schier
9f7f06a142 Don't adhere to wrapLines in single-line inputs 2024-09-25 22:16:35 -07:00
3 changed files with 6 additions and 4 deletions

View File

@@ -465,7 +465,7 @@ impl PluginManager {
};
let plugin = self
.get_plugin_by_dir(plugin_name)
.get_plugin_by_name(plugin_name)
.await
.ok_or(PluginNotFoundErr(plugin_name.to_string()))?;

View File

@@ -99,13 +99,13 @@ export const Editor = forwardRef<EditorView | undefined, EditorProps>(function E
}: EditorProps,
ref,
) {
const s = useSettings();
const settings = useSettings();
const templateFunctions = useTemplateFunctions();
const allEnvironmentVariables = useActiveEnvironmentVariables();
const environmentVariables = autocompleteVariables ? allEnvironmentVariables : emptyVariables;
if (s && wrapLines === undefined) {
wrapLines = s.editorSoftWrap;
if (settings && wrapLines === undefined) {
wrapLines = settings.editorSoftWrap;
}
const cm = useRef<{ view: EditorView; languageCompartment: Compartment } | null>(null);

View File

@@ -434,6 +434,7 @@ function PairEditorRow({
ref={nameInputRef}
hideLabel
useTemplating
wrapLines={false}
readOnly={pairContainer.pair.readOnlyName}
size="sm"
require={!isLast && !!pairContainer.pair.enabled && !!pairContainer.pair.value}
@@ -475,6 +476,7 @@ function PairEditorRow({
ref={valueInputRef}
hideLabel
useTemplating
wrapLines={false}
size="sm"
containerClassName={classNames(isLast && 'border-dashed')}
validate={valueValidate}