Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidebar: Show CustomField data to non-owners #67

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

jeffdaley
Copy link
Contributor

Fixes a template-logic bug where non-owners weren't seeing customEditableField data.

@jeffdaley jeffdaley requested a review from a team as a code owner February 28, 2023 20:36
@onChange={{perform this.save field}}
@updateFieldValue={{this.updateCustomFieldValue}}
@loading={{this.save.isRunning}}
@disabled={{or this.editingIsDisabled (not this.isOwner)}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Non-owners get the read-only @disabled version of the field.

@@ -319,17 +319,15 @@
<small class="hds-typography-body-100 hds-foreground-faint">
{{attributes.displayName}}
</small>
{{#if this.isOwner}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We move this check to the @disabled argument.

@jfreda jfreda merged commit 3ec3554 into main Mar 2, 2023
@jfreda jfreda deleted the jeffdaley/custom-fields branch March 2, 2023 00:01
anuragprafulla pushed a commit to razorpay/hermes that referenced this pull request Jun 27, 2023
Show customEditableField data to non-owners
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants