mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
* Feature flagged: display an error style on a builder and automation application, and then its settings, if an integration is in error. * Show the error message in a tooltip * fix: merge duplicate integration error methods after rebase on develop * Tweak the error message * test: give the live integration fixture an authorized subject
78 lines
1.5 KiB
Vue
78 lines
1.5 KiB
Vue
<template>
|
|
<div class="presentation" @click="$emit('click', $event)">
|
|
<div v-if="image || icon || initials" class="presentation__avatar">
|
|
<Avatar
|
|
:size="iconSize"
|
|
:image="image"
|
|
:icon="icon"
|
|
:initials="initials"
|
|
:color="avatarColor"
|
|
:rounded="roundedIcon"
|
|
/>
|
|
</div>
|
|
<div class="presentation__content">
|
|
<div class="presentation__title">{{ title }}</div>
|
|
<div
|
|
v-if="subtitle"
|
|
class="presentation__subtitle"
|
|
:class="{ 'presentation__subtitle--error': subtitleError }"
|
|
>
|
|
{{ subtitle }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'Presentation',
|
|
props: {
|
|
initials: {
|
|
type: String,
|
|
required: false,
|
|
default: '',
|
|
},
|
|
icon: {
|
|
type: String,
|
|
required: false,
|
|
default: '',
|
|
},
|
|
iconSize: {
|
|
type: String,
|
|
required: false,
|
|
default: 'large',
|
|
},
|
|
roundedIcon: {
|
|
type: Boolean,
|
|
required: false,
|
|
default: true,
|
|
},
|
|
image: {
|
|
type: String,
|
|
required: false,
|
|
default: null,
|
|
},
|
|
avatarColor: {
|
|
type: String,
|
|
required: false,
|
|
default: 'blue',
|
|
},
|
|
title: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
subtitle: {
|
|
type: String,
|
|
required: false,
|
|
default: '',
|
|
},
|
|
subtitleError: {
|
|
type: Boolean,
|
|
required: false,
|
|
default: false,
|
|
},
|
|
},
|
|
emits: ['click'],
|
|
}
|
|
</script>
|