+
+
Given To This Project
@@ -199,11 +218,13 @@
+
+
@@ -214,6 +235,7 @@ import { IIdentifier } from "@veramo/core";
import { Component, Vue } from "vue-facing-decorator";
import GiftedDialog from "@/components/GiftedDialog.vue";
+import OfferDialog from "@/components/OfferDialog.vue";
import { accountsDB, db } from "@/db/index";
import { Contact } from "@/db/tables/contacts";
import { MASTER_SETTINGS_KEY, Settings } from "@/db/tables/settings";
@@ -236,7 +258,7 @@ interface Notification {
}
@Component({
- components: { GiftedDialog, QuickNav, EntityIcon },
+ components: { EntityIcon, GiftedDialog, OfferDialog, QuickNav },
})
export default class ProjectViewView extends Vue {
$notify!: (notification: Notification, timeout?: number) => void;
@@ -533,8 +555,12 @@ export default class ProjectViewView extends Vue {
);
}
- openDialog(contact: GiverInputInfo) {
- (this.$refs.customDialog as GiftedDialog).open(contact);
+ openGiftDialog(contact: GiverInputInfo) {
+ (this.$refs.customGiveDialog as GiftedDialog).open(contact);
+ }
+
+ openOfferDialog() {
+ (this.$refs.customOfferDialog as OfferDialog).open();
}
}