previous next states for obscore table

This commit is contained in:
Matthieu BAUMANN
2023-04-06 09:54:03 +02:00
parent 9c8ccbb920
commit 1bf97b66ff
8 changed files with 134 additions and 17 deletions

View File

@@ -106,7 +106,15 @@ export let Source = (function() {
'name': this.catalog.name,
'color': this.catalog.color
};
view.aladin.measurementTable.showMeasurement([singleSourceTable]);
let options = {};
if (this.catalog.isObsCore()) {
// If the source is obscore, save the table state inside the measurement table
// This is used to go back from a possible datalink table to the obscore one
options["save"] = true;
}
view.aladin.measurementTable.showMeasurement([singleSourceTable], options);
}
else if (this.catalog.onClick=='showPopup') {