Skip to content

Commit

Permalink
Preserve filters for staff only (#2010)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-eyds authored Aug 26, 2024
1 parent 7444d15 commit a12985a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ppr-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ppr-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ppr-ui",
"version": "3.2.48",
"version": "3.2.49",
"private": true,
"appName": "Assets UI",
"sbcName": "SBC Common Components",
Expand Down
8 changes: 6 additions & 2 deletions ppr-ui/src/components/tables/RegistrationTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@
<script lang="ts">
import {
computed,
defineComponent,
defineComponent, onMounted,
onUpdated,
reactive,
ref,
Expand Down Expand Up @@ -501,7 +501,7 @@ export default defineComponent({
clientReferenceId: 7
}
// getters
const { getAccountProductSubscriptions } = storeToRefs(useStore())
const { isRoleStaffReg, getAccountProductSubscriptions } = storeToRefs(useStore())
// helpers
const {
// filters
Expand Down Expand Up @@ -820,6 +820,10 @@ export default defineComponent({
}
})
onMounted(() => {
if (!isRoleStaffReg.value) clearFilters()
})
return {
isMiscTransfersEnabled,
getNext,
Expand Down
2 changes: 1 addition & 1 deletion ppr-ui/src/views/newMhrRegistration/HomeOwners.vue
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ import {
} from '@/composables'
import { MhrRegistrationHomeOwnerGroupIF } from '@/interfaces'
import { ActionTypes, RouteNames, UITransferTypes } from '@/enums'
import { ActionTypes, RouteNames } from '@/enums'
import { transfersErrors } from '@/resources'
import { formatCurrency } from '@/utils'
Expand Down

0 comments on commit a12985a

Please sign in to comment.