Skip to content

Commit

Permalink
Added Modal to Hyperlinked Button.
Browse files Browse the repository at this point in the history
  • Loading branch information
j-sund committed Dec 9, 2023
1 parent c632517 commit 3b91332
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/web/src/pages/FinalExamScheduler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,16 @@

<b-col md="7">
<div class="mt-3">
<b-button variant="secondary" class = "button-color" @mouseover = "hoverButton" @click="goToSchoolWebsite">Go to School Website</b-button>
<b-button variant="secondary" class = "button-color" @click="showConfirmModal">Get Updated PDF for All </b-button>

<b-modal id="confirm-modal-id" hide-footer title="Confirmation">

<p>Are you sure you want to go to this page?</p>
<b-button class = "mt-3" variant="primary" @click="goToSchoolWebsite">Yes</b-button>
<b-button class = "mt-3" variant="danger" @click="cancelNavigation">No</b-button>

</b-modal>

</div>
</b-col>

Expand Down Expand Up @@ -261,9 +270,17 @@ export default {
}
});
},
showConfirmModal() {
this.$bvModal.show('confirm-modal-id');
},
goToSchoolWebsite() {
window.open('https://info.rpi.edu/registrar/grades', '_blank');
window.open('https://info.rpi.edu/registrar/grades', '_blank');
},
cancelNavigation() {
this.$bvModal.hide('confirm-modal-id');
},
},
};
Expand Down

0 comments on commit 3b91332

Please sign in to comment.