Restore custom events to Request List
This commit is contained in:
parent
3c65f836e3
commit
3b28adf64b
@ -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[]
|
||||||
|
Loading…
Reference in New Issue
Block a user