mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 00:08:25 +00:00
* feat(agent): choose the identity an Agent runs as Agents can run as one of the workspace's Agent identities or with no workspace access. The tools that act with the identity's permissions come next. * fix(agent): refresh the run-as identity label * fix(agent): flag deleted run-as identities in configuration * feat(agent): explain unavailable workspace identities * refactor(agent): return a typed configuration object * fix(agent): handle run-as identity permissions and lifecycle * refactor(agent): use constants for readiness and state checks * fix(agent): record before and after configuration values * refactor(agent): move configuration transaction to API view * fix(agent): batch run-as identity invalidations * test: use real debounce in views admin tests * fix(agent): keep run-as choices within the viewport * perf: reuse permission data within batches
35 lines
932 B
Vue
35 lines
932 B
Vue
<template>
|
|
<SidebarApplication
|
|
:workspace="workspace"
|
|
:application="application"
|
|
:highlighted="selected"
|
|
@selected="selectApplication"
|
|
/>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { AGENT_APPLICATION_TYPE } from '@baserow/modules/agent/constants'
|
|
import { computed } from 'vue'
|
|
import SidebarApplication from '@baserow/modules/core/components/sidebar/SidebarApplication'
|
|
import { notifyIf } from '@baserow/modules/core/utils/error'
|
|
|
|
const props = defineProps({
|
|
application: { type: Object, required: true },
|
|
workspace: { type: Object, required: true },
|
|
})
|
|
const { $store, $registry } = useNuxtApp()
|
|
const selected = computed(() =>
|
|
$store.getters['application/isSelected'](props.application)
|
|
)
|
|
|
|
async function selectApplication() {
|
|
try {
|
|
await $registry
|
|
.get('application', AGENT_APPLICATION_TYPE)
|
|
.select(props.application)
|
|
} catch (error) {
|
|
notifyIf(error, 'application')
|
|
}
|
|
}
|
|
</script>
|