Unverified Commit cadfeecb authored by Alireza Heidari's avatar Alireza Heidari
Browse files

Fixes credential section rendering in tool card

Wraps credential-related content in nested template to ensure proper rendering regardless of credential presence.

Previously, the outer template with conditional rendering could cause display issues when credentials were absent.
parent a61aca17
Loading
Loading
Loading
Loading
+31 −29
Original line number Diff line number Diff line
@@ -207,7 +207,8 @@ onBeforeMount(() => {
            <slot name="buttons" />
        </template>

        <template v-if="props.options.credentials?.length" v-slot>
        <template v-slot>
            <template v-if="props.options.credentials?.length">
                <ToolCredentials
                    v-if="!props.allowEditingCredentials"
                    class="mt-2"
@@ -237,6 +238,7 @@ onBeforeMount(() => {
                        </div>
                    </BPopover>
                </BAlert>
            </template>

            <FormMessage variant="danger" :message="errorText" :persistent="true" />
            <FormMessage :variant="props.messageVariant" :message="props.messageText" />