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

View File

@@ -548,6 +548,7 @@ export default class ContactQRScanShow extends Vue {
}); });
this.notify.toast( this.notify.toast(
NOTIFY_QR_REGISTRATION_SUBMITTED.message, NOTIFY_QR_REGISTRATION_SUBMITTED.message,
undefined,
QR_TIMEOUT_SHORT, QR_TIMEOUT_SHORT,
); );
@@ -624,7 +625,7 @@ export default class ContactQRScanShow extends Vue {
useClipboard() useClipboard()
.copy(jwtUrl) .copy(jwtUrl)
.then(() => { .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 recipientDid
? "This was given to " + recipientName + "." ? "This was given to " + recipientName + "."
: "No individual benefitted." : "No named individual benefitted."
}} }}
</label> </label>
<font-awesome <font-awesome
@@ -626,6 +626,7 @@ export default class GiftedDetails extends Vue {
this.notify.toast( this.notify.toast(
NOTIFY_GIFTED_DETAILS_RECORDING_GIVE.message, NOTIFY_GIFTED_DETAILS_RECORDING_GIVE.message,
undefined,
TIMEOUTS.SHORT, TIMEOUTS.SHORT,
); );

View File

@@ -1613,17 +1613,6 @@ export default class HomeView extends Vue {
(this.$refs.feedFilters as FeedFilters).open(this.reloadFeedOnChange); (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 * Computes CSS classes for known person icons
* *