diff --git a/client/src/api/schema/schema.ts b/client/src/api/schema/schema.ts index e0ce6060a1b7..e1cbfe76f583 100644 --- a/client/src/api/schema/schema.ts +++ b/client/src/api/schema/schema.ts @@ -19403,7 +19403,7 @@ export interface operations { * @description Allows remote job running mechanisms to get a fresh OIDC token that can be used on remote side to authorize user. It is not meant to represent part of Galaxy's stable, user facing API */ parameters: { - /** @description A key used to authenticate this request as acting onbehalf or a job runner for the specified job */ + /** @description A key used to authenticate this request as acting on behalf or a job runner for the specified job */ /** @description OIDC provider name */ query: { job_key: string; diff --git a/client/src/components/Common/Heading.vue b/client/src/components/Common/Heading.vue index 39372e06c21e..9fc6415c5bc6 100644 --- a/client/src/components/Common/Heading.vue +++ b/client/src/components/Common/Heading.vue @@ -15,14 +15,27 @@ interface Props { size?: "xl" | "lg" | "md" | "sm" | "text"; icon?: string | [string, string]; truncate?: boolean; + collapse?: "open" | "closed" | "none"; } -const props = defineProps(); +const props = withDefaults(defineProps(), { + collapse: "none", +}); + +defineEmits(["click"]); const sizeClass = computed(() => { return `h-${props.size ?? "lg"}`; }); +const collapsible = computed(() => { + return props.collapse !== "none"; +}); + +const collapsed = computed(() => { + return props.collapse === "closed"; +}); + const element = computed(() => { for (const key of ["h1", "h2", "h3", "h4", "h5", "h6"]) { if (props[key as keyof typeof props]) { @@ -35,10 +48,15 @@ const element = computed(() => {