-
+
@@ -107,19 +104,12 @@
-
-
- Choose What To Confirm
-
+ Choose What To Confirm
@@ -149,7 +139,7 @@ import {
getHeaders,
} from "../libs/endorserServer";
import { logger } from "../utils/logger";
-import { retrieveAllAccountsMetadata } from "@/libs/util";
+
import { createNotifyHelpers, TIMEOUTS } from "@/utils/notify";
import {
NOTIFY_ERROR_RETRIEVING_CLAIMS,
@@ -216,6 +206,19 @@ export default class QuickActionBvcEndView extends Vue {
: `There are ${this.claimCountByUser} other claims by you`;
}
+ // Template streamlining: Extract long class strings to computed properties
+ get backButtonClasses() {
+ return "text-lg text-center px-2 py-1 absolute -left-2 -top-1";
+ }
+
+ get submitButtonClasses() {
+ return "block text-center text-md font-bold bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md w-56";
+ }
+
+ get disabledButtonClasses() {
+ return "block text-center text-md font-bold bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md w-56";
+ }
+
async created() {
this.loadingConfirms = true;
@@ -226,7 +229,7 @@ export default class QuickActionBvcEndView extends Vue {
this.apiServer = settings.apiServer || "";
this.activeDid = settings.activeDid || "";
- this.allContacts = await this.$getAllContacts();
+ this.allContacts = await this.$contacts();
let currentOrPreviousSat = DateTime.now().setZone("America/Denver");
if (currentOrPreviousSat.weekday < 6) {
@@ -245,7 +248,7 @@ export default class QuickActionBvcEndView extends Vue {
suppressMilliseconds: true,
}) || "";
- this.allMyDids = (await retrieveAllAccountsMetadata()).map(
+ this.allMyDids = (await this.$getAllAccounts()).map(
(account) => account.did,
);
const headers = await getHeaders(this.activeDid);