fix(editor): Move overrideButton and other options to the left to line up with container boundary (no-changelog) (#13061)

This commit is contained in:
Charlie Kolb
2025-02-05 11:25:32 +01:00
committed by GitHub
parent 2c2d63157b
commit 2492c35e90
3 changed files with 24 additions and 5 deletions

View File

@@ -400,6 +400,13 @@ const getIssues = computed<string[]>(() => {
return [];
});
const displayIssues = computed(
() =>
props.parameter.type !== 'credentialsSelect' &&
!isResourceLocatorParameter.value &&
getIssues.value.length > 0,
);
const editorType = computed<EditorType | 'json' | 'code'>(() => {
return getArgument<EditorType>('editor');
});
@@ -1019,6 +1026,7 @@ const isSingleLineInput = computed(() => {
defineExpose({
isSingleLineInput,
displaysIssues: displayIssues.value,
focusInput: async () => await setFocus(),
selectInput: () => selectInput(),
});
@@ -1597,10 +1605,7 @@ onUpdated(async () => {
>
<slot name="overrideButton" />
</div>
<ParameterIssues
v-if="parameter.type !== 'credentialsSelect' && !isResourceLocatorParameter"
:issues="getIssues"
/>
<ParameterIssues v-if="displayIssues" :issues="getIssues" />
</div>
</template>