Fix notify initialization and axios access errors

- ContactQRScanShowView: Move notify initialization to created() lifecycle hook
- DIDView: Remove axios getter accessing non-existent platformService.axios
- DIDView: Enhance setVisibility() with proper server API error handling
This commit is contained in:
Matthew Raymer
2025-08-08 02:29:13 +00:00
parent bf08e57ce7
commit f98d6c7020
2 changed files with 27 additions and 14 deletions

View File

@@ -213,15 +213,11 @@ export default class ContactQRScanShow extends Vue {
$router!: Router;
// Notification helper system
private notify = createNotifyHelpers(this.$notify);
notify!: ReturnType<typeof createNotifyHelpers>;
activeDid = "";
apiServer = "";
// Axios instance for API calls
get axios() {
return (this as any).$platformService.axios;
}
givenName = "";
hideRegisterPromptOnNewContact = false;
isRegistered = false;
@@ -288,6 +284,8 @@ export default class ContactQRScanShow extends Vue {
}
async created() {
this.notify = createNotifyHelpers(this.$notify);
try {
const settings = await this.$accountSettings();
this.activeDid = settings.activeDid || "";