Skip to content

Commit

Permalink
feat: add column to show proposal id & link to archive (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
jashan-lco authored Jun 10, 2024
1 parent 984dd41 commit 893621b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/views/SemesterDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<th>Title</th>
<th>Semesters</th>
<th>Instrument Types</th>
<th>Archived Frames</th>
<th>Total {{ id }} Hours</th>
</tr>
</thead>
Expand Down Expand Up @@ -59,6 +60,9 @@
{{ instrument_type }}
</div>
</td>
<td>
<b-link :href="archiveClientLinkForProposal(proposal)">{{ proposal.id }}</b-link>
</td>
<td>
{{ getTotalAllocationForProposal(proposal) | formatFloat(0) }}
</td>
Expand Down Expand Up @@ -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']) {
Expand Down

0 comments on commit 893621b

Please sign in to comment.