bump to v 0.2.17; add "personalized" message and better confirmation-result messages

This commit is contained in:
2024-03-01 15:54:50 -07:00
parent dbccbf7e4a
commit 3612ea4224
7 changed files with 27 additions and 22 deletions

View File

@@ -95,6 +95,8 @@
size="20"
class="border border-slate-400 h-6 px-2"
/>
<br />
(Everyone likes personalized messages! 😁)
</span>
<!-- This is to match input height to avoid shifting when hiding & showing. -->
<span v-else class="h-6">...</span>
@@ -326,7 +328,7 @@ export default class QuickActionBvcBeginView extends Vue {
title: "Error",
text:
(giveResult as ErrorResult)?.error?.userMessage ||
"There was an error sending the give.",
"There was an error sending that give.",
},
-1,
);
@@ -338,19 +340,20 @@ export default class QuickActionBvcBeginView extends Vue {
confirmsSucceeded.length === 1 ? "confirmation" : "confirmations";
const actions =
confirmsSucceeded.length > 0 && giveSucceeded
? `${confirms} and give have been`
? `Your ${confirms} and that give have been recorded.`
: giveSucceeded
? "give has been"
: confirms +
? "That give has been recorded."
: "Your " +
confirms +
" " +
(confirmsSucceeded.length === 1 ? "has" : "have") +
" been";
" been recorded.";
this.$notify(
{
group: "alert",
type: "success",
title: "Success",
text: `Your ${actions} recorded.`,
text: actions,
},
-1,
);