Skip to content

Allow read-only custom feature browsing#2975

Merged
anthonysena merged 1 commit intomasterfrom
issue-2532-custom-feature-cs
Nov 26, 2024
Merged

Allow read-only custom feature browsing#2975
anthonysena merged 1 commit intomasterfrom
issue-2532-custom-feature-cs

Conversation

@anthonysena
Copy link
Collaborator

Modifies the custom feature editor to allow for browsing concept sets when in read-only mode per #2532. These changes also enable the copy SQL to clipboard per #2812.

<div data-bind="if: $data.criteriaType === 'WindowedCriteria'">
<windowed-criteria params="{ expression: { ConceptSets: $component.data().conceptSets }, criteria: $data.expression, disableObservationPeriod: true, defaultObservationPeriod: true }"></windowed-criteria>
</div>
<div data-bind="css: $component.canEdit() ? '' : 'feature-analysis-view-edit__content--disabled'">
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This CSS class feature-analysis-view-edit__content--disabled is defined by the parent component and I was not sure how to best use it so for now it is hardcoded.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alex-odysseus do you or anyone from your team provide a suggestion to handle this CSS approach?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to follow up on this item: I've attempted to edit the child .less sheets to include the disabled BEM modifier without much luck. I'd propose just hard-coding this now.

@anthonysena anthonysena merged commit 2ef78e1 into master Nov 26, 2024
@anthonysena anthonysena deleted the issue-2532-custom-feature-cs branch November 26, 2024 14:55

self.multiple = params.multiple;
self.options = params.options;
self.disable = (params.disable || false);
Copy link
Contributor

@pieterlukasse pieterlukasse Apr 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the mismatch of self.disable and attr: disabled, added to the .html above seems to cause an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Characterization - Custom Feature - "Copy Analysis SQL Template to Clipboard" Can not view concept sets in Custom Features when only view access

3 participants