mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-29 06:49:55 +00:00
72 lines
1.7 KiB
Vue
72 lines
1.7 KiB
Vue
<template>
|
|
<div style="position: absolute">
|
|
<ApplicationContext
|
|
ref="context"
|
|
:application="application"
|
|
:workspace="workspace"
|
|
>
|
|
<template #additional-context-items>
|
|
<li
|
|
v-if="
|
|
$hasPermission(
|
|
'application.update',
|
|
application,
|
|
application.workspace.id
|
|
)
|
|
"
|
|
class="context__menu-item"
|
|
>
|
|
<a class="context__menu-item-link" @click="openSettingsModal">
|
|
<i class="context__menu-item-icon iconoir-settings"></i>
|
|
{{ $t('sidebarComponentBuilder.settings') }}
|
|
</a>
|
|
</li>
|
|
</template>
|
|
</ApplicationContext>
|
|
|
|
<AutomationSettingsModal
|
|
ref="automationSettingsModal"
|
|
:automation="application"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { defineComponent, ref } from 'vue'
|
|
import AutomationSettingsModal from '@baserow/modules/automation/components/settings/AutomationSettingsModal'
|
|
import ApplicationContext from '@baserow/modules/core/components/application/ApplicationContext'
|
|
import applicationContext from '@baserow/modules/core/mixins/applicationContext'
|
|
|
|
export default defineComponent({
|
|
components: {
|
|
ApplicationContext,
|
|
AutomationSettingsModal,
|
|
},
|
|
mixins: [applicationContext],
|
|
props: {
|
|
application: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
workspace: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
},
|
|
setup() {
|
|
const context = ref(null)
|
|
const automationSettingsModal = ref(null)
|
|
|
|
const openSettingsModal = () => {
|
|
automationSettingsModal.value.show()
|
|
context.value.hide()
|
|
}
|
|
|
|
return {
|
|
context,
|
|
automationSettingsModal,
|
|
openSettingsModal,
|
|
}
|
|
},
|
|
})
|
|
</script>
|