diff --git a/sirepo/package_data/static/html/silas-source.html b/sirepo/package_data/static/html/silas-source.html index b3c49e7216..1b341a6ca4 100644 --- a/sirepo/package_data/static/html/silas-source.html +++ b/sirepo/package_data/static/html/silas-source.html @@ -9,7 +9,7 @@ -
+
diff --git a/sirepo/package_data/static/js/silas.js b/sirepo/package_data/static/js/silas.js index 782cfa77dc..bda8833d46 100644 --- a/sirepo/package_data/static/js/silas.js +++ b/sirepo/package_data/static/js/silas.js @@ -88,6 +88,7 @@ SIREPO.app.controller('SourceController', function (appState, frameCache, persis const self = this; self.simScope = $scope; self.simAnalysisModel = 'laserPulseAnimation'; + self.oldData = false; self.simHandleStatus = (data) => { if (! appState.isLoaded()) { @@ -107,6 +108,8 @@ SIREPO.app.controller('SourceController', function (appState, frameCache, persis }; self.simState = persistentSimulation.initSimulationState(self); + $scope.$on('laserPulse.changed', () => self.oldData = true); + $scope.$on('framesCleared', () => self.oldData = false); }); SIREPO.app.controller('BeamlineController', function (appState, beamlineService, $scope) {