2020-10-14 00:10:52 +00:00
|
|
|
<template lang="html">
|
|
|
|
<header>
|
|
|
|
<div>
|
|
|
|
<h5 class="mb-0">{{ title }}</h5>
|
2020-11-07 05:44:34 +00:00
|
|
|
<small class="d-block text-muted">{{ subtitle }}</small>
|
2020-10-14 00:10:52 +00:00
|
|
|
</div>
|
|
|
|
|
2020-10-23 16:20:35 +00:00
|
|
|
<div class="actions">
|
|
|
|
<slot />
|
|
|
|
|
|
|
|
<b-button
|
|
|
|
:variant="nightMode ? 'dark' : 'light'"
|
|
|
|
size="sm"
|
|
|
|
class="ml-auto"
|
|
|
|
@click="$emit('close')"
|
|
|
|
>
|
|
|
|
<icon name="x" />
|
|
|
|
</b-button>
|
|
|
|
</div>
|
2020-10-14 00:10:52 +00:00
|
|
|
</header>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-10-14 21:48:27 +00:00
|
|
|
import { mapGetters } from 'vuex';
|
|
|
|
|
2020-10-14 00:10:52 +00:00
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
title: String,
|
|
|
|
subtitle: String,
|
|
|
|
},
|
2020-10-14 21:48:27 +00:00
|
|
|
|
|
|
|
computed: {
|
|
|
|
...mapGetters(['nightMode']),
|
|
|
|
},
|
2020-10-14 00:10:52 +00:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
|
|
header {
|
|
|
|
display: grid;
|
|
|
|
width: 100%;
|
|
|
|
align-items: center;
|
|
|
|
grid-template-columns: auto auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
h5 {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2020-11-07 05:44:34 +00:00
|
|
|
line-height: 0.8;
|
2020-10-14 00:10:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.actions {
|
|
|
|
margin-left: auto;
|
2020-10-31 17:43:55 +00:00
|
|
|
align-self: flex-start;
|
2020-10-14 00:10:52 +00:00
|
|
|
}
|
|
|
|
</style>
|