Skip to content

Commit

Permalink
Merge pull request #61 from LCOGT/fix/soar-spectra-config-types
Browse files Browse the repository at this point in the history
Fix/soar spectra config types
  • Loading branch information
eheinrich committed Aug 1, 2019
2 parents 97bfe51 + 8294355 commit 6876a84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ <h4>Draft Proposals</h4>
<td>{{ app.status }}</td>
<td>
<a href="{% url 'sciapplications:detail' pk=app.id %}"><i class="fa fa-print"></i></a>
<a href="{% url 'sciapplications:pdf' pk=app.id %}"><i class="fa fa-file-pdf-o"></i></a>
<a href="{% url 'sciapplications:pdf' pk=app.id %}"><i class="far fa-file-pdf"></i></a>
</td>
<td><a href="{% url 'sciapplications:delete' pk=app.id %}" class="fa fa-trash" title="Delete draft"></a></td>
</tr>
Expand Down Expand Up @@ -146,7 +146,7 @@ <h4>Submitted Proposals</h4>
<td>{{ app.status }}</td>
<td>
<a href="{% url 'sciapplications:detail' pk=app.id %}"><i class="fa fa-print"></i></a>
<a href="{% url 'sciapplications:pdf' pk=app.id %}"><i class="fa fa-file-pdf-o"></i></a>
<a href="{% url 'sciapplications:pdf' pk=app.id %}"><i class="far fa-file-pdf"></i></a>
</td>
</tr>
{% endif %}
Expand Down Expand Up @@ -186,7 +186,7 @@ <h4>Draft Proposals</h4>
<td>{{ app.status }}</td>
<td>
<a href="{% url 'sciapplications:detail' pk=app.id %}"><i class="fa fa-print"></i></a>
<a href="{% url 'sciapplications:pdf' pk=app.id %}"><i class="fa fa-file-pdf-o"></i></a>
<a href="{% url 'sciapplications:pdf' pk=app.id %}"><i class="far fa-file-pdf"></i></a>
</td>
<td><a href="{% url 'sciapplications:delete' pk=app.id %}" class="fa fa-trash" title="Delete draft"></a></td>
</tr>
Expand Down Expand Up @@ -217,7 +217,7 @@ <h4>Submitted Proposals</h4>
<td>{{ app.status }}</td>
<td>
<a href="{% url 'sciapplications:detail' pk=app.id %}"><i class="fa fa-print"></i></a>
<a href="{% url 'sciapplications:pdf' pk=app.id %}"><i class="fa fa-file-pdf-o"></i></a>
<a href="{% url 'sciapplications:pdf' pk=app.id %}"><i class="far fa-file-pdf"></i></a>
</td>
</tr>
{% endif %}
Expand Down
6 changes: 4 additions & 2 deletions static/js/components/configuration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@
</panel>
</template>
<script>
import _ from 'lodash';
import { collapseMixin } from '../utils.js';
import panel from './util/panel.vue';
import customalert from './util/customalert.vue';
Expand Down Expand Up @@ -189,12 +191,12 @@
},
computed: {
spectraConfigurationOptions: function() {
if (this.selectedinstrument) {
if (_.get(this.available_instruments, this.selectedinstrument, {}).type === 'SPECTRA') {
if (this.selectedinstrument.includes('NRES')) {
return [
{value: 'NRES_SPECTRUM', 'text': 'Spectrum'}
]
} else if (this.selectedinstrument.includes('FLOYDS')) {
} else {
return [
{value: 'SPECTRUM', text: 'Spectrum'},
{value: 'LAMP_FLAT', text: 'Lamp Flat'},
Expand Down

0 comments on commit 6876a84

Please sign in to comment.