knowyt/client/src/components/CollectQuotes.vue

35 lines
720 B
Vue
Raw Normal View History

2021-10-01 14:40:07 +00:00
<template>
<div class="collect-quotes">
<CollectQuotesExplain />
2021-10-04 06:46:36 +00:00
<div class="collect-quotes__list" v-for="quote in quotes" :key="quote.id">
<div class="collect-quotes__quote">
{{ quote.quote }}
</div>
<div class="collect-quotes__actions">
<div class="collect-quotes__icon collect-quotes__icon-edit" />
<div class="collect-quotes__icon collect-quotes__icon-delete" />
</div>
</div>
2021-10-01 14:40:07 +00:00
</div>
</template>
<script>
2021-10-04 06:46:36 +00:00
export default {
computed: {
quotes() {
return this.$store.state.myQuotes.quotes
},
},
async fetch() {
await this.$engine.getMyQuotes()
},
2021-10-01 14:40:07 +00:00
}
</script>
<style lang="scss">
.collect-quotes {
color: #ffc0c0;
2021-10-04 06:46:36 +00:00
}
2021-10-01 14:40:07 +00:00
</style>