Hangar/frontend/components/layouts/Announcement.vue
Jake Potrebic e1ea6eb2c5
tiny issues
* formatting
* remove imports from 'vue-property-decorator'
* only notify of version reviews if its the last open review that is reviewed
2021-03-15 10:23:32 -07:00

27 lines
626 B
Vue

<template>
<v-alert :color="announcement.color" dense>
{{ announcement.text }}
</v-alert>
</template>
<script lang="ts">
import { Component, Prop, Vue } from 'nuxt-property-decorator';
import { Announcement as AnnouncementObject } from 'hangar-api';
import { PropType } from 'vue';
@Component
export default class Announcement extends Vue {
@Prop({ type: Object as PropType<AnnouncementObject>, required: true })
announcement!: AnnouncementObject;
}
</script>
<style lang="scss" scoped>
.v-alert {
text-align: center;
margin-bottom: 1rem;
flex: 0 0 100%;
max-width: 100%;
}
</style>