Files
speckle-server/packages/frontend-2/components/settings/SectionHeader.vue
T
Chuck Driesler d2f2d7bcfd feat(automate): allow function authors to regenerate function tokens (#5057)
* feat(automate): expose function regeneration endpoint

* chore(automate): remember to call the function

* fix(automate): use correct auth code action

* fix(automate): token regenerate policy

* fix(automate): expose function regen token policy

* feat(automate): workspace automation settings tab

* feat(automate): function token regeneration dialog

* fix(automate): improve gql usage in vue components

* chore(authz): tests for automate function policies

* fix(automate): use paginated query

* fix(automate): resolve initial result
2025-07-17 11:24:58 +02:00

51 lines
1.2 KiB
Vue

<template>
<div class="flex flex-col">
<div
class="flex flex-col md:flex-row gap-3 md:gap-0 justify-between"
:class="{ 'md:items-center': subheading }"
>
<h2 v-if="subheading" class="text-heading-lg">{{ title }}</h2>
<h1 v-else class="text-heading-xl">
{{ title }}
</h1>
<div v-if="buttons.length > 0" class="flex flex-wrap gap-2">
<FormButton
v-for="(button, index) in buttons"
:key="index"
v-bind="button.props"
class="shrink-0 whitespace-nowrap"
@click="($event) => button.onClick?.($event)"
>
{{ button.label }}
</FormButton>
</div>
</div>
<p
v-if="text"
class="text-body-sm text-foreground-2 pt-2"
:class="{ 'pt-6': subheading }"
>
{{ text }}
</p>
<hr v-if="!subheading && !hideDivider" class="my-6 border-outline-2" />
<slot />
</div>
</template>
<script lang="ts" setup>
import type { LayoutHeaderButton } from '@speckle/ui-components'
withDefaults(
defineProps<{
title: string
text?: string
buttons?: LayoutHeaderButton[]
subheading?: boolean
hideDivider?: boolean
}>(),
{
buttons: () => []
}
)
</script>