diff --git a/src/components/GiftedPrompts.vue b/src/components/GiftedPrompts.vue index adb07b14b..3803862a1 100644 --- a/src/components/GiftedPrompts.vue +++ b/src/components/GiftedPrompts.vue @@ -2,9 +2,9 @@
@@ -108,7 +121,7 @@ export default class GivenPrompts extends Vue { if ( this.currentIdeaIndex == this.CONTACT_PROMPT_INDEX - 1 || (this.currentIdeaIndex == this.CONTACT_PROMPT_INDEX && - this.currentContact) + this.shownContactDbIndices.length < this.numContacts) ) { this.currentIdeaIndex = this.CONTACT_PROMPT_INDEX; this.findNextUnshownContact(); @@ -128,7 +141,7 @@ export default class GivenPrompts extends Vue { (this.CONTACT_PROMPT_INDEX + 1) % (this.IDEAS.length + this.OTHER_PROMPTS) || (this.currentIdeaIndex == this.CONTACT_PROMPT_INDEX && - this.currentContact) + this.shownContactDbIndices.length < this.numContacts) ) { this.currentIdeaIndex = this.CONTACT_PROMPT_INDEX; this.findNextUnshownContact(); @@ -144,6 +157,12 @@ export default class GivenPrompts extends Vue { } } + nextIdeaPastContacts() { + this.currentIdeaIndex = 0; + this.currentContact = undefined; + this.shownContactDbIndices = []; + } + async findNextUnshownContact() { // get a random contact if (this.shownContactDbIndices.length === this.numContacts) { diff --git a/src/main.ts b/src/main.ts index fc0152a84..0bcda412d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -36,6 +36,7 @@ import { faFileLines, faFloppyDisk, faFolderOpen, + faForward, faGift, faGlobe, faHand, @@ -92,6 +93,7 @@ library.add( faFileLines, faFloppyDisk, faFolderOpen, + faForward, faGift, faGlobe, faHand, diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index be1397326..23b66ced0 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -110,7 +110,7 @@ @click="openGiftedPrompts()" class="block text-center text-md font-bold bg-blue-500 text-white px-2 py-3 rounded-md" > - If you want an idea... + Ideas...