From c5102f89b584fadfae6a2f08a47108658f2f875e Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Tue, 23 Apr 2024 09:13:57 -0600 Subject: [PATCH] add note about confirming your own, plus other helpful verbiage, plus notify messages that don't linger --- src/views/GiftedDetails.vue | 2 +- src/views/QuickActionBvcBeginView.vue | 10 +++++----- src/views/QuickActionBvcEndView.vue | 12 ++++++++++++ 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/views/GiftedDetails.vue b/src/views/GiftedDetails.vue index 5eabe11..0f9f085 100644 --- a/src/views/GiftedDetails.vue +++ b/src/views/GiftedDetails.vue @@ -217,7 +217,7 @@ export default class GiftedDetails extends Vue { ); console.log("Got project name from cache", project); this.projectName = project?.name - ? "the project " + project.name + ? "the project: " + project.name : "a project"; } } diff --git a/src/views/QuickActionBvcBeginView.vue b/src/views/QuickActionBvcBeginView.vue index 8602280..468468a 100644 --- a/src/views/QuickActionBvcBeginView.vue +++ b/src/views/QuickActionBvcBeginView.vue @@ -153,7 +153,7 @@ export default class QuickActionBvcBeginView extends Vue { timeResult?.error?.userMessage || "There was an error sending the time.", }, - -1, + 5000, ); } } @@ -180,7 +180,7 @@ export default class QuickActionBvcBeginView extends Vue { attendResult?.error?.userMessage || "There was an error sending the attendance.", }, - -1, + 5000, ); } } @@ -199,7 +199,7 @@ export default class QuickActionBvcBeginView extends Vue { title: "Success", text: actions, }, - -1, + 3000, ); } @@ -211,9 +211,9 @@ export default class QuickActionBvcBeginView extends Vue { group: "alert", type: "danger", title: "Error", - text: error.userMessage || "There was an error sending claims.", + text: error.userMessage || "There was an error sending the claims.", }, - -1, + 5000, ); } } diff --git a/src/views/QuickActionBvcEndView.vue b/src/views/QuickActionBvcEndView.vue index 8b97ab7..87c9e36 100644 --- a/src/views/QuickActionBvcEndView.vue +++ b/src/views/QuickActionBvcEndView.vue @@ -82,6 +82,16 @@ page. +
+ + {{ + claimCountByUser === 1 + ? "There is 1 other claim by you" + : `There are ${claimCountByUser} other claims by you` + }} + which you don't need to confirm. + +

Anything else?

@@ -165,6 +175,7 @@ export default class QuickActionBvcBeginView extends Vue { allContacts: Array = []; allMyDids: Array = []; apiServer = ""; + claimCountByUser = 0; claimCountWithHidden = 0; claimsToConfirm: GenericCredWrapper[] = []; claimsToConfirmSelected: string[] = []; @@ -236,6 +247,7 @@ export default class QuickActionBvcBeginView extends Vue { dataByOthers, ); this.claimsToConfirm = dataByOthersWithoutHidden; + this.claimCountByUser = data.length - dataByOthers.length; this.claimCountWithHidden = dataByOthers.length - dataByOthersWithoutHidden.length; });