Identicon responsive size fix + lint-fix

This commit is contained in:
Jose Olarte III
2025-03-17 17:59:59 +08:00
parent 8f7d794962
commit 77b296b606
2 changed files with 48 additions and 38 deletions

View File

@@ -466,7 +466,7 @@ export default class HomeView extends Vue {
if (resp.status === 200) {
await updateAccountSettings(this.activeDid, {
isRegistered: true,
...await retrieveSettingsForActiveAccount()
...(await retrieveSettingsForActiveAccount()),
});
this.isRegistered = true;
}
@@ -915,7 +915,7 @@ export default class HomeView extends Vue {
this.$notify(
{
group: "modal",
type: "confirm",
type: "confirm",
title: "Confirm",
text: "Do you personally confirm that this is true?",
onYes: async () => {
@@ -924,46 +924,52 @@ export default class HomeView extends Vue {
serverUtil.addLastClaimOrHandleAsIdIfMissing(
record.fullClaim,
record.jwtId,
record.handleId
)
)
record.handleId,
),
),
);
const confirmationClaim = {
"@context": "https://schema.org",
"@type": "AgreeAction",
object: goodClaim
"@type": "AgreeAction",
object: goodClaim,
};
const result = await serverUtil.createAndSubmitClaim(
confirmationClaim,
this.activeDid,
this.apiServer,
this.axios
this.axios,
);
if (result.type === "success") {
this.$notify({
group: "alert",
type: "success",
title: "Success",
text: "Confirmation submitted."
}, 3000);
this.$notify(
{
group: "alert",
type: "success",
title: "Success",
text: "Confirmation submitted.",
},
3000,
);
// Refresh the feed to show updated confirmation status
await this.updateAllFeed();
} else {
console.error("Error submitting confirmation:", result);
this.$notify({
group: "alert",
type: "danger",
title: "Error",
text: "There was a problem submitting the confirmation."
}, 5000);
this.$notify(
{
group: "alert",
type: "danger",
title: "Error",
text: "There was a problem submitting the confirmation.",
},
5000,
);
}
}
},
},
-1
-1,
);
}
}