only show the "raw edit" when advanced options are turned on

This commit is contained in:
2024-09-22 08:39:08 -06:00
parent 1c79cc25fe
commit b149e623b2
4 changed files with 11 additions and 15 deletions

View File

@@ -134,7 +134,7 @@
<label class="text-sm mt-1">This was a trade (not a gift)</label>
</div>
<div class="mt-4 flex">
<div v-if="showGeneralAdvanced" class="mt-4 flex">
<router-link
:to="{
name: 'claim-add-raw',
@@ -225,6 +225,7 @@ export default class GiftedDetails extends Vue {
projectName = "a project";
recipientDid = "";
recipientName = "";
showGeneralAdvanced = false;
unitCode = "HUR";
libsUtil = libsUtil;
@@ -354,6 +355,8 @@ export default class GiftedDetails extends Vue {
this.givenToProject = !!this.projectId;
this.givenToRecipient = !this.givenToProject && !!this.recipientDid;
this.showGeneralAdvanced = !!settings.showGeneralAdvanced;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (err: any) {
console.error("Error retrieving settings from database:", err);