Skip to content

Commit

Permalink
Fix recipients query count
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-dudarev committed Jul 1, 2024
1 parent 07c2a10 commit 33b0f48
Show file tree
Hide file tree
Showing 3 changed files with 233 additions and 54 deletions.
10 changes: 5 additions & 5 deletions src/VirtoCommerce.PushMessages.Web/App/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"@types/node": "^20.10.5",
"@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0",
"@vc-shell/api-client-generator": "^1.0.223",
"@vc-shell/release-config": "^1.0.223",
"@vc-shell/ts-config": "^1.0.223",
"@vc-shell/api-client-generator": "^1.0.247",
"@vc-shell/release-config": "^1.0.247",
"@vc-shell/ts-config": "^1.0.247",
"@vitejs/plugin-vue": "^5.0.3",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
Expand Down Expand Up @@ -55,8 +55,8 @@
},
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.3",
"@vc-shell/config-generator": "^1.0.223",
"@vc-shell/framework": "^1.0.223",
"@vc-shell/config-generator": "^1.0.247",
"@vc-shell/framework": "^1.0.247",
"@vueuse/core": "^10.7.1",
"@vueuse/integrations": "^10.7.1",
"moment": "^2.30.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { computed, reactive, watch } from "vue";
import { computed, reactive, ref, watch } from "vue";
import {
DetailsBaseBladeScope,
DetailsComposableArgs,
Expand Down Expand Up @@ -105,6 +105,7 @@ export default (args: DetailsComposableArgs<{ options: { sourceMessage: PushMess
},
isReadOnly: () => !isEditable(),
countMembers: countMembers,
memberCount: ref(),
};

async function saveMessage(message: PushMessage | undefined, status?: string) {
Expand All @@ -131,7 +132,7 @@ export default (args: DetailsComposableArgs<{ options: { sourceMessage: PushMess
deepSearch: true,
take: 0,
} as MembersSearchCriteria);
scope.value.memberCount = result.totalCount;
scope.memberCount.value = result.totalCount;
}
}

Expand Down
Loading

0 comments on commit 33b0f48

Please sign in to comment.