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:
@@ -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 || "";
|
||||
|
||||
Reference in New Issue
Block a user