Skip to content

Commit

Permalink
Merge pull request #895 from opencb/TASK-5708
Browse files Browse the repository at this point in the history
TASK-5708 - Actions is listed in the columns dropdown of Clinical Analysis Settings but cannot be hidden
  • Loading branch information
jmjuanes authored Apr 3, 2024
2 parents e45cea1 + 2a94fe8 commit 505dba6
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 12 deletions.
3 changes: 1 addition & 2 deletions src/webcomponents/clinical/clinical-analysis-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -806,11 +806,10 @@ export default class ClinicalAnalysisGrid extends LitElement {
events: {
"click a": this.onActionClick.bind(this)
},
visible: !this._config.columns?.hidden?.includes("actions")
visible: this.gridCommons.isColumnVisible("actions")
});
}

// _columns = UtilsNew.mergeTable(_columns, this._config.columns || this._config.hiddenColumns, !!this._config.hiddenColumns);
this._columns = this.gridCommons.addColumnsFromExtensions(this._columns, this.COMPONENT_ID);
return this._columns;
}
Expand Down
2 changes: 1 addition & 1 deletion src/webcomponents/cohort/cohort-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export default class CohortGrid extends LitElement {
events: {
"click a": this.onActionClick.bind(this)
},
visible: !this._config.columns?.hidden?.includes("actions")
visible: this.gridCommons.isColumnVisible("actions")
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/webcomponents/disease-panel/disease-panel-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ export default class DiseasePanelGrid extends LitElement {
events: {
"click a": this.onActionClick.bind(this)
},
visible: !this._config.columns?.hidden?.includes("actions"),
visible: this.gridCommons.isColumnVisible("actions"),
});
}

Expand Down
3 changes: 1 addition & 2 deletions src/webcomponents/family/family-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,11 +548,10 @@ export default class FamilyGrid extends LitElement {
events: {
"click a": this.onActionClick.bind(this)
},
visible: !this._config.columns?.hidden?.includes("actions")
visible: this.gridCommons.isColumnVisible("actions")
});
}

// _columns = UtilsNew.mergeTable(_columns, this._config.columns || this._config.hiddenColumns, !!this._config.hiddenColumns);
this._columns = this.gridCommons.addColumnsFromExtensions(this._columns, this.COMPONENT_ID);
return this._columns;
}
Expand Down
2 changes: 1 addition & 1 deletion src/webcomponents/file/file-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ export default class OpencgaFileGrid extends LitElement {
events: {
"click a": this.onActionClick.bind(this)
},
visible: !this._config.columns?.hidden?.includes("actions")
visible: this.gridCommons.isColumnVisible("actions")
});
}

Expand Down
3 changes: 1 addition & 2 deletions src/webcomponents/individual/individual-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -613,11 +613,10 @@ export default class IndividualGrid extends LitElement {
events: {
"click a": this.onActionClick.bind(this)
},
visible: !this._config.columns?.hidden?.includes("actions")
visible: this.gridCommons.isColumnVisible("actions")
});
}

// _columns = UtilsNew.mergeTable(_columns, this._config.columns || this._config.hiddenColumns, !!this._config.hiddenColumns);
this._columns = this.gridCommons.addColumnsFromExtensions(this._columns, this.COMPONENT_ID);
return this._columns;
}
Expand Down
2 changes: 1 addition & 1 deletion src/webcomponents/job/job-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ export default class JobGrid extends LitElement {
events: {
"click a": this.onActionClick.bind(this)
},
visible: !this._config.columns?.hidden?.includes("actions")
visible: this.gridCommons.isColumnVisible("actions")
});
}

Expand Down
3 changes: 1 addition & 2 deletions src/webcomponents/sample/sample-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,10 @@ export default class SampleGrid extends LitElement {
events: {
"click a": this.onActionClick.bind(this)
},
visible: !this._config.columns?.hidden?.includes("actions")
visible: this.gridCommons.isColumnVisible("actions")
});
}

// _columns = UtilsNew.mergeTable(_columns, this._config.columns || this._config.hiddenColumns, !!this._config.hiddenColumns);
this._columns = this.gridCommons.addColumnsFromExtensions(this._columns, this.COMPONENT_ID);
return this._columns;
}
Expand Down

0 comments on commit 505dba6

Please sign in to comment.