diff --git a/src/components/GiftedDialog.vue b/src/components/GiftedDialog.vue index 9dd8f01..183ac97 100644 --- a/src/components/GiftedDialog.vue +++ b/src/components/GiftedDialog.vue @@ -54,7 +54,7 @@ }" class="text-blue-500" > - Photo, ... + Photo & Details ... diff --git a/src/libs/util.ts b/src/libs/util.ts index 0bd8016..97fe9c1 100644 --- a/src/libs/util.ts +++ b/src/libs/util.ts @@ -70,7 +70,7 @@ export const isGlobalUri = (uri: string) => { return uri && uri.match(new RegExp(/^[A-Za-z][A-Za-z0-9+.-]+:/)); }; -export const giveIsConfirmable = (veriClaim: GenericCredWrapper) => { +export const isGiveAction = (veriClaim: GenericCredWrapper) => { return veriClaim.claimType === "GiveAction"; }; @@ -91,7 +91,7 @@ export const isGiveRecordTheUserCanConfirm = ( confirmerIdList: string[] = [], ) => { return ( - giveIsConfirmable(veriClaim) && + isGiveAction(veriClaim) && !confirmerIdList.includes(activeDid) && veriClaim.issuer !== activeDid && !containsHiddenDid(veriClaim.claim) diff --git a/src/main.ts b/src/main.ts index bd183f3..8b33ed3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -11,10 +11,12 @@ import "./assets/styles/tailwind.css"; import { library } from "@fortawesome/fontawesome-svg-core"; import { + faArrowDown, faArrowLeft, faArrowRight, faArrowRotateBackward, faArrowUpRightFromSquare, + faArrowUp, faBan, faBitcoinSign, faBurst, @@ -47,6 +49,7 @@ import { faGlobe, faHammer, faHand, + faHandHoldingDollar, faHandHoldingHeart, faHouseChimney, faImagePortrait, @@ -77,10 +80,12 @@ import { } from "@fortawesome/free-solid-svg-icons"; library.add( + faArrowDown, faArrowLeft, faArrowRight, faArrowRotateBackward, faArrowUpRightFromSquare, + faArrowUp, faBan, faBitcoinSign, faBurst, @@ -113,6 +118,7 @@ library.add( faGlobe, faHammer, faHand, + faHandHoldingDollar, faHandHoldingHeart, faHouseChimney, faImagePortrait, diff --git a/src/router/index.ts b/src/router/index.ts index 1189599..c44739d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -43,14 +43,19 @@ const routes: Array = [ name: "confirm-contact", component: () => import("../views/ConfirmContactView.vue"), }, + { + path: "/confirm-gift/:id?", + name: "confirm-gift", + component: () => import("@/views/ConfirmGiftView.vue"), + }, { path: "/contact-amounts", name: "contact-amounts", component: () => import("../views/ContactAmountsView.vue"), }, { - path: "/contact-gives", - name: "contact-gives", + path: "/contact-gift", + name: "contact-gift", component: () => import("../views/ContactGiftingView.vue"), }, { diff --git a/src/views/ClaimView.vue b/src/views/ClaimView.vue index 8b8e5a0..22c04a5 100644 --- a/src/views/ClaimView.vue +++ b/src/views/ClaimView.vue @@ -10,7 +10,7 @@ @click="$router.go(-1)" class="text-lg text-center px-2 py-1 absolute -left-2 -top-1" > - + Verifiable Claim Details @@ -35,16 +35,16 @@ " class="ml-2 mr-2" > - + Copied ID
- + {{ veriClaim.claim?.description }}
- + {{ veriClaim.issuer }} Copied DID
- + {{ veriClaim.issuedAt?.replace(/T/, " ").replace(/Z/, " UTC") }}
@@ -121,7 +121,7 @@ -
+
+ + + Confirmation Details... + + +