diff --git a/src/views/GiftedDetails.vue b/src/views/GiftedDetails.vue index da6f516..c0f746f 100644 --- a/src/views/GiftedDetails.vue +++ b/src/views/GiftedDetails.vue @@ -78,7 +78,7 @@
@@ -450,6 +454,31 @@ export default class GiftedDetails extends Vue { ); } + notifyUserOfProject() { + if (!this.projectId) { + this.$notify( + { + group: "alert", + type: "warning", + title: "Error", + text: "To assign to a project, you must open this dialog through a project.", + }, + 3000, + ); + } else { + // must be because givenToUser is true + this.$notify( + { + group: "alert", + type: "warning", + title: "Error", + text: "You cannot assign both to a project and to yourself.", + }, + 3000, + ); + } + } + /** * * @param giverDid may be null