-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ofmcc-6328 - add funding envelope status filter
- Loading branch information
1 parent
24789d5
commit 5e7f0d1
Showing
2 changed files
with
69 additions
and
2 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
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,48 @@ | ||
<template> | ||
<v-row no-gutters justify="end"> | ||
<v-col cols="12" sm="5" lg="3" class="d-flex flex-column align-end"> | ||
<AppButton id="status-filter-button" variant="text" :disabled="loading" class="pt-2" @click="toggleShowFilter()"> | ||
Filter by Status | ||
<v-icon>mdi-filter</v-icon> | ||
</AppButton> | ||
</v-col> | ||
<v-col cols="12" sm="6" lg="4" class="pb-0"> | ||
<v-text-field v-show="showFilterInput" v-model.trim="statusFilter" placeholder="Filter by Status" variant="outlined" density="compact" :disabled="loading" hide-details /> | ||
</v-col> | ||
</v-row> | ||
</template> | ||
|
||
<script> | ||
import AppButton from '@/components/ui/AppButton.vue' | ||
export default { | ||
name: 'StatusFilter', | ||
components: { AppButton }, | ||
props: { | ||
loading: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
}, | ||
emits: ['status-filter-changed'], | ||
data() { | ||
return { | ||
showFilterInput: true, | ||
statusFilter: '', | ||
} | ||
}, | ||
watch: { | ||
statusFilter(newVal) { | ||
this.$emit('status-filter-changed', newVal) | ||
}, | ||
}, | ||
methods: { | ||
toggleShowFilter() { | ||
this.showFilterInput = !this.showFilterInput | ||
if (!this.showFilterInput) { | ||
this.statusFilter = '' | ||
} | ||
}, | ||
}, | ||
} | ||
</script> |