LT-251: Highlighting both quick switches with the selected thumbnail
This commit is contained in:
parent
bbcbc93510
commit
610d4f6d4a
@ -10,7 +10,6 @@ Template.registerHelper('isDisplaySetActive', (displaySetInstanceUid, viewportIn
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.warn('>>>>test');
|
|
||||||
let viewportData;
|
let viewportData;
|
||||||
if (_.isUndefined(viewportIndex)) {
|
if (_.isUndefined(viewportIndex)) {
|
||||||
viewportData = layoutManager.viewportData;
|
viewportData = layoutManager.viewportData;
|
||||||
|
|||||||
@ -21,6 +21,10 @@ LayoutManager = class LayoutManager {
|
|||||||
return this.layoutProps.rows * this.layoutProps.columns;
|
return this.layoutProps.rows * this.layoutProps.columns;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateSession() {
|
||||||
|
Tracker.afterFlush(() => Session.set('LayoutManagerUpdated', Random.id()));
|
||||||
|
}
|
||||||
|
|
||||||
setDefaultViewportData() {
|
setDefaultViewportData() {
|
||||||
var numViewports = this.getNumberOfViewports();
|
var numViewports = this.getNumberOfViewports();
|
||||||
|
|
||||||
@ -109,7 +113,7 @@ LayoutManager = class LayoutManager {
|
|||||||
$(this.parentNode).html('');
|
$(this.parentNode).html('');
|
||||||
Blaze.renderWithData(layoutTemplate, data, this.parentNode);
|
Blaze.renderWithData(layoutTemplate, data, this.parentNode);
|
||||||
|
|
||||||
Session.set('LayoutManagerUpdated', Random.id());
|
this.updateSession();
|
||||||
|
|
||||||
this.isZoomed = false;
|
this.isZoomed = false;
|
||||||
}
|
}
|
||||||
@ -157,7 +161,7 @@ LayoutManager = class LayoutManager {
|
|||||||
// Render and insert the template
|
// Render and insert the template
|
||||||
Blaze.renderWithData(Template.imageViewerViewport, data, newViewportContainer);
|
Blaze.renderWithData(Template.imageViewerViewport, data, newViewportContainer);
|
||||||
|
|
||||||
Session.set('LayoutManagerUpdated', Random.id());
|
this.updateSession();
|
||||||
}
|
}
|
||||||
|
|
||||||
enlargeViewport(viewportIndex) {
|
enlargeViewport(viewportIndex) {
|
||||||
@ -191,7 +195,7 @@ LayoutManager = class LayoutManager {
|
|||||||
this.zoomedViewportIndex = viewportIndex;
|
this.zoomedViewportIndex = viewportIndex;
|
||||||
this.viewportData = data.viewportData;
|
this.viewportData = data.viewportData;
|
||||||
|
|
||||||
Session.set('LayoutManagerUpdated', Random.id());
|
this.updateSession();
|
||||||
}
|
}
|
||||||
|
|
||||||
resetPreviousLayout() {
|
resetPreviousLayout() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user