Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/changes/565.new.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Dynamically displayed all available finder charts in the interface.
8 changes: 7 additions & 1 deletion src/goats_tom/static/js/gpp/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,13 @@ const SHARED_FIELDS = [
path: "timingWindows",
handler: "handleSchedulingWindowsInputs",
},

{
section : "Finder Charts"
},
{
path: "attachments",
handler: "handleFinderCharts"
},
{ section: "Configuration" },
{
labelText: "Position Angle",
Expand Down
7 changes: 7 additions & 0 deletions src/goats_tom/static/js/gpp/observation_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ class ObservationForm {
data: [raw ?? null , allocations, timeCharge]
});
return [div];
},
handleFinderCharts: (meta, raw) => {
const div = Utils.createElement("div" , "mt-0");
new FinderChartEditor (div, {
data : raw ?? []
})
return [div]
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ <h4>Lunar Distance</h4>
<script src="{% static 'js/gpp/elevation_range_editor.js' %}" defer></script>
<script src="{% static 'js/gpp/exposure_mode_editor.js' %}" defer></script>
<script src="{% static 'js/gpp/scheduling_windows_editor.js' %}" defer></script>
<script src="{% static 'js/gpp/finder_chart_editor.js' %}" defer></script>
<script src="{% static 'js/gpp/observation_form.js' %}" defer></script>
<script src="{% static 'js/gpp/gpp.js' %}" defer></script>
<script src="{% static 'js/gpp/app.js' %}" defer></script>
Expand Down