Skip to content

Commit

Permalink
Merge pull request #10 from conterra/visibility-improvements
Browse files Browse the repository at this point in the history
Visibility improvements
  • Loading branch information
sholtkamp authored Dec 16, 2024
2 parents 825d46a + 977ce47 commit 0280169
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ export default class DatatableActionDefinitionFactory {
this.supportedIds = [ID];
}

public createDefinitionById(id: string): ActionDefinition {
public createDefinitionById(id: string): ActionDefinition | undefined {
if (ID !== id) {
return;
}
const i18n = this._i18n.get();
const agsStoreFactory = this._agsStoreFactory;
const agsStoreFactory = this._agsStoreFactory!;
// eslint-disable-next-line @typescript-eslint/no-this-alias
const that = this;

Expand All @@ -59,10 +59,9 @@ export default class DatatableActionDefinitionFactory {
return true;
} else if (capabilities?.operations?.supportsQuery) {
return true;
} else if (parent.visibilityMode === "exclusive") {
return ref.sublayers && tocItem.listMode === "hide-children";
}
else {
} else if (ref.sublayers.length === 1 && tocItem.listMode === "hide-children") {
return true;
} else {
return false;
}
} else {
Expand Down

0 comments on commit 0280169

Please sign in to comment.