mirror of
				https://github.com/gristlabs/grist-core.git
				synced 2025-06-13 20:53:59 +00:00 
			
		
		
		
	(core) Fix Card view linked to summary to show card navigation buttons
Test Plan: Added a test case to verify that nav buttons are now shown and work. Reviewers: alexmojaki Reviewed By: alexmojaki Differential Revision: https://phab.getgrist.com/D3073
This commit is contained in:
		
							parent
							
								
									67ec52365a
								
							
						
					
					
						commit
						c8da5c7356
					
				@ -318,11 +318,11 @@ DetailView.prototype.buildTitleControls = function() {
 | 
			
		||||
  // Hide controls if this is a card list section, or if the section has a scroll cursor link, since
 | 
			
		||||
  // the controls can be confusing in this case.
 | 
			
		||||
  // Note that the controls should still be visible with a filter link.
 | 
			
		||||
  const showControls = ko.computed(() =>
 | 
			
		||||
    this._isSingle &&
 | 
			
		||||
      (!this.viewSection.activeLinkSrcSectionRef() || this.viewSection.activeLinkTargetColRef()) &&
 | 
			
		||||
      !this.recordLayout.layoutEditor()
 | 
			
		||||
  );
 | 
			
		||||
  const showControls = ko.computed(() => {
 | 
			
		||||
    if (!this._isSingle || this.recordLayout.layoutEditor()) { return false; }
 | 
			
		||||
    const linkingState = this._linkingState();
 | 
			
		||||
    return !(linkingState && Boolean(linkingState.cursorPos));
 | 
			
		||||
  });
 | 
			
		||||
  return dom('div',
 | 
			
		||||
    dom.autoDispose(showControls),
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user