fix: Toast messages were showing numbers. Removed unused function. Clarified tests.

This commit is contained in:
2025-08-05 19:58:39 -06:00
parent 974d33b322
commit b17642fbcb
4 changed files with 7 additions and 16 deletions

View File

@@ -11,7 +11,7 @@
class="px-4 py-2 rounded mr-2 transition-colors"
@click="testInsert"
>
Test Insert
Test Contact Insert
</button>
<button
:class="
@@ -22,7 +22,7 @@
class="px-4 py-2 rounded mr-2 transition-colors"
@click="testUpdate"
>
Test Update
Test Contact Update
</button>
<button
:class="
@@ -44,7 +44,7 @@
class="px-4 py-2 rounded mr-2 transition-colors"
@click="testDatabaseStorage"
>
Test Database Storage Format
Test SearchBox Database Storage -- Beware: Changes Your Search Box
</button>
<button
:class="

View File

@@ -548,6 +548,7 @@ export default class ContactQRScanShow extends Vue {
});
this.notify.toast(
NOTIFY_QR_REGISTRATION_SUBMITTED.message,
undefined,
QR_TIMEOUT_SHORT,
);
@@ -624,7 +625,7 @@ export default class ContactQRScanShow extends Vue {
useClipboard()
.copy(jwtUrl)
.then(() => {
this.notify.toast(NOTIFY_QR_URL_COPIED.message, QR_TIMEOUT_MEDIUM);
this.notify.toast(NOTIFY_QR_URL_COPIED.message, undefined, QR_TIMEOUT_MEDIUM);
});
}

View File

@@ -189,7 +189,7 @@
{{
recipientDid
? "This was given to " + recipientName + "."
: "No individual benefitted."
: "No named individual benefitted."
}}
</label>
<font-awesome
@@ -626,6 +626,7 @@ export default class GiftedDetails extends Vue {
this.notify.toast(
NOTIFY_GIFTED_DETAILS_RECORDING_GIVE.message,
undefined,
TIMEOUTS.SHORT,
);

View File

@@ -1613,17 +1613,6 @@ export default class HomeView extends Vue {
(this.$refs.feedFilters as FeedFilters).open(this.reloadFeedOnChange);
}
/**
* Shows toast notification to user
*
* @internal
* Used for various user notifications
* @param message Message to display
*/
toastUser(message: string) {
this.notify.toast("FYI", message, TIMEOUTS.SHORT);
}
/**
* Computes CSS classes for known person icons
*