bump to v 0.2.17; add "personalized" message and better confirmation-result messages
This commit is contained in:
@@ -142,7 +142,7 @@ export default class QuickActionBvcBeginView extends Vue {
|
||||
if (timeResult.type === "success") {
|
||||
timeSuccess = true;
|
||||
} else {
|
||||
console.error("Error sending give:", timeResult);
|
||||
console.error("Error sending time:", timeResult);
|
||||
this.$notify(
|
||||
{
|
||||
group: "alert",
|
||||
@@ -169,7 +169,7 @@ export default class QuickActionBvcBeginView extends Vue {
|
||||
if (attendResult.type === "success") {
|
||||
attendedSuccess = true;
|
||||
} else {
|
||||
console.error("Error sending give:", attendResult);
|
||||
console.error("Error sending attendance:", attendResult);
|
||||
this.$notify(
|
||||
{
|
||||
group: "alert",
|
||||
@@ -187,16 +187,16 @@ export default class QuickActionBvcBeginView extends Vue {
|
||||
if (timeSuccess || attendedSuccess) {
|
||||
const actions =
|
||||
timeSuccess && attendedSuccess
|
||||
? "attendance and time have been"
|
||||
? "Your attendance and time have been recorded."
|
||||
: timeSuccess
|
||||
? "time has been"
|
||||
: "attendance has been";
|
||||
? "Your time has been recorded."
|
||||
: "Your attendance has been recorded.";
|
||||
this.$notify(
|
||||
{
|
||||
group: "alert",
|
||||
type: "success",
|
||||
title: "Success",
|
||||
text: `Your ${actions} recorded.`,
|
||||
text: actions,
|
||||
},
|
||||
-1,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user