|
|
@ -51,6 +51,10 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-if="projectId" class="flex justify-center mt-2"> |
|
|
|
<label class="text-sm">This is given to a project</label> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="flex justify-center mb-4 mt-4"> |
|
|
|
<span v-if="imageUrl"> |
|
|
|
Includes Image: |
|
|
@ -70,14 +74,17 @@ |
|
|
|
</router-link> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
<div class="mt-4"> |
|
|
|
|
|
|
|
<div v-if="!projectId" class="mt-4"> |
|
|
|
<input type="checkbox" class="h-6 w-6 mr-2" v-model="givenToUser" /> |
|
|
|
<label class="text-sm">Given to you</label> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="mt-4"> |
|
|
|
<input type="checkbox" class="h-6 w-6 mr-2" v-model="isTrade" /> |
|
|
|
<label class="text-sm">Trade (not a gift)</label> |
|
|
|
</div> |
|
|
|
|
|
|
|
<p class="text-center mb-2 mt-6 italic"> |
|
|
|
Sign & Send to publish to the world |
|
|
|
</p> |
|
|
@ -139,12 +146,15 @@ export default class GiftedDetails extends Vue { |
|
|
|
this.description = this.$route.query.description as string; |
|
|
|
this.giverDid = this.$route.query.giverDid as string; |
|
|
|
this.giverName = this.$route.query.giverName as string; |
|
|
|
this.imageUrl = localStorage.getItem("imageUrl") || ""; |
|
|
|
this.message = this.$route.query.message as string; |
|
|
|
this.offerId = this.$route.query.offerId as string; |
|
|
|
this.projectId = this.$route.query.projectId as string; |
|
|
|
this.unitCode = this.$route.query.unitCode as string; |
|
|
|
|
|
|
|
this.imageUrl = localStorage.getItem("imageUrl") || ""; |
|
|
|
|
|
|
|
this.givenToUser = !this.projectId; |
|
|
|
|
|
|
|
try { |
|
|
|
await db.open(); |
|
|
|
const settings = (await db.settings.get(MASTER_SETTINGS_KEY)) as Settings; |
|
|
|