Refactor notification usage and apply TypeScript/lint improvements
- Replaced direct $notify calls with notification helper utilities for consistency and reduced duplication. - Updated AccountViewView.vue, PlatformServiceMixin.ts, and ShareMyContactInfoView.vue to use notification helpers. - Added explicit TypeScript types and constants for notification patterns. - Suppressed ESLint 'any' warning in notification mixin helper. - Ensured all affected files pass linting.
This commit is contained in:
@@ -732,7 +732,9 @@ export default class ClaimView extends Vue {
|
||||
"Error retrieving all account DIDs on home page:" + error,
|
||||
true,
|
||||
);
|
||||
this.notify.error("See the Help page for problems with your personal data.");
|
||||
this.notify.error(
|
||||
"See the Help page for problems with your personal data.",
|
||||
);
|
||||
}
|
||||
|
||||
const claimId = this.$route.params.id as string;
|
||||
@@ -875,7 +877,10 @@ export default class ClaimView extends Vue {
|
||||
await this.$logError(
|
||||
"Error retrieving claim: " + JSON.stringify(serverError),
|
||||
);
|
||||
this.notify.error("Something went wrong retrieving claim data.", TIMEOUTS.STANDARD);
|
||||
this.notify.error(
|
||||
"Something went wrong retrieving claim data.",
|
||||
TIMEOUTS.STANDARD,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -932,7 +937,10 @@ export default class ClaimView extends Vue {
|
||||
" if they can find out more and make an introduction: " +
|
||||
" send them this page and see if they can make a connection for you.";
|
||||
} else {
|
||||
this.notify.error("Something went wrong retrieving that claim.", TIMEOUTS.LONG);
|
||||
this.notify.error(
|
||||
"Something went wrong retrieving that claim.",
|
||||
TIMEOUTS.LONG,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -942,7 +950,7 @@ export default class ClaimView extends Vue {
|
||||
"Do you personally confirm that this is true?",
|
||||
async () => {
|
||||
await this.confirmClaim();
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1051,7 +1059,10 @@ export default class ClaimView extends Vue {
|
||||
await this.$logError(
|
||||
"Unrecognized claim type for edit: " + this.veriClaim.claimType,
|
||||
);
|
||||
this.notify.error("This is an unrecognized claim type.", TIMEOUTS.STANDARD);
|
||||
this.notify.error(
|
||||
"This is an unrecognized claim type.",
|
||||
TIMEOUTS.STANDARD,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user