Version 3 #67

Merged
danieljsummers merged 53 commits from version-3 into master 2021-10-26 23:39:59 +00:00
Showing only changes of commit 3b28adf64b - Show all commits

View File

@ -11,7 +11,7 @@ md-table(md-card)
</template> </template>
<script lang="ts"> <script lang="ts">
import { createComponent } from '@vue/composition-api' import { createComponent, onMounted } from '@vue/composition-api'
import RequestListItem from './RequestListItem.vue' import RequestListItem from './RequestListItem.vue'
@ -30,9 +30,11 @@ export default createComponent({
} }
}, },
setup (props, { parent }) { setup (props, { parent }) {
// TODO: custom events // TODO: custom events; does this work?
// this.$on('requestUnsnoozed', parent.$emit('requestUnsnoozed')) onMounted(function () {
// this.$on('requestNowShown', parent.$emit('requestNowShown')) this.$on('requestUnsnoozed', parent.$emit('requestUnsnoozed'))
this.$on('requestNowShown', parent.$emit('requestNowShown'))
})
return { return {
title: props.title, title: props.title,
requests: props.requests as JournalRequest[] requests: props.requests as JournalRequest[]