-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Implement Latest Spending (#21)
Change Log: - Add ExpenseList Component
- Loading branch information
Showing
3 changed files
with
53 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
frontend/expensia/app/scripts/views/components/expense/ExpenseList.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<template> | ||
<ui-list :type="2"> | ||
<ui-item v-for="expense in expenses" :key="expense.id"> | ||
<ui-item-first-content> | ||
<ui-icon>attach_money</ui-icon> | ||
{{ expense.amount }} | ||
</ui-item-first-content> | ||
|
||
<ui-item-text-content> | ||
<ui-item-text1>{{ expense.name }}</ui-item-text1> | ||
<ui-item-text2>{{ expense.category.name }}</ui-item-text2> | ||
</ui-item-text-content> | ||
<ui-item-last-content> | ||
<ui-icon-button icon="density_small"></ui-icon-button> | ||
</ui-item-last-content> | ||
</ui-item> | ||
</ui-list> | ||
</template> | ||
|
||
<script> | ||
import {mapGetters} from "vuex"; | ||
export default { | ||
name: "ExpenseList", | ||
computed: { | ||
...mapGetters([ | ||
'expenses', | ||
]) | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
</style> |
13 changes: 7 additions & 6 deletions
13
frontend/expensia/app/scripts/views/pages/HomeDashboard.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters