Browse Source

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

get-get-hash
Trent Larson 7 days ago
parent
commit
b17642fbcb
  1. 6
      src/test/PlatformServiceMixinTest.vue
  2. 3
      src/views/ContactQRScanShowView.vue
  3. 3
      src/views/GiftedDetailsView.vue
  4. 11
      src/views/HomeView.vue

6
src/test/PlatformServiceMixinTest.vue

@ -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="

3
src/views/ContactQRScanShowView.vue

@ -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);
});
}

3
src/views/GiftedDetailsView.vue

@ -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,
);

11
src/views/HomeView.vue

@ -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
*

Loading…
Cancel
Save