forked from jsnbuchanan/crowd-funder-for-time-pwa
fix: initialize notification helpers in lifecycle methods
- Fix 't is not a function' error during image upload by properly initializing notification helpers - Move notification helper initialization from class-level to lifecycle methods (created/mounted) - Affected components: ImageMethodDialog, SeedBackupView, QuickActionBvcBeginView, HelpNotificationsView - Ensures $notify is available when createNotifyHelpers() is called - Resolves notification errors in image upload functionality
This commit is contained in:
@@ -162,7 +162,7 @@ export default class SeedBackupView extends Vue {
|
||||
showSeed = false;
|
||||
|
||||
// Notification helper system
|
||||
notify = createNotifyHelpers(this.$notify);
|
||||
notify!: ReturnType<typeof createNotifyHelpers>;
|
||||
|
||||
/**
|
||||
* Computed property for consistent copy feedback styling
|
||||
@@ -204,6 +204,9 @@ export default class SeedBackupView extends Vue {
|
||||
* Handles errors gracefully with user notifications.
|
||||
*/
|
||||
async created() {
|
||||
// Initialize notification helpers
|
||||
this.notify = createNotifyHelpers(this.$notify);
|
||||
|
||||
try {
|
||||
let activeDid = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user