From 893621b0d5f38b4be9884a61f571da632b063edb Mon Sep 17 00:00:00 2001
From: Jashandeep Sohi <95394050+jashan-lco@users.noreply.github.com>
Date: Mon, 10 Jun 2024 09:44:23 -0700
Subject: [PATCH] feat: add column to show proposal id & link to archive (#102)
---
src/views/SemesterDetail.vue | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/views/SemesterDetail.vue b/src/views/SemesterDetail.vue
index c328b0c..9bc98ee 100644
--- a/src/views/SemesterDetail.vue
+++ b/src/views/SemesterDetail.vue
@@ -26,6 +26,7 @@
Title |
Semesters |
Instrument Types |
+ Archived Frames |
Total {{ id }} Hours |
@@ -59,6 +60,9 @@
{{ instrument_type }}
+
+ {{ proposal.id }}
+ |
{{ getTotalAllocationForProposal(proposal) | formatFloat(0) }}
|
@@ -98,12 +102,18 @@ export default {
computed: {
proposalsBySca: function() {
return _.groupBy(this.data, 'sca_id');
+ },
+ archiveClientUrl: function() {
+ return this.$store.state.urls.archiveClient;
}
},
methods: {
initializeDataEndpoint: function() {
return this.$store.state.urls.observationPortalApi + '/api/semesters/' + this.id + '/proposals/';
},
+ archiveClientLinkForProposal: function(proposal) {
+ return this.archiveClientUrl + "?proposal_id=" + proposal.id;
+ },
getInstrumentTypes: function(proposal) {
let instrumentTypesSet = new Set();
for (let instrumentTypes in proposal['allocation']) {