Skip to content

refactor: fixing disabled behavior for ht-link#915

Merged
anandtiwary merged 6 commits intomainfrom
link-nav-changes
Jun 9, 2021
Merged

refactor: fixing disabled behavior for ht-link#915
anandtiwary merged 6 commits intomainfrom
link-nav-changes

Conversation

@anandtiwary
Copy link
Copy Markdown
Contributor

@anandtiwary anandtiwary commented Jun 8, 2021

Description

Please include a summary of the change, motivation and context.
refactor: fixing disabled behavior for ht-link

Testing

Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

Documentation

Make sure that you have documented corresponding changes in this repository or hypertrace docs repo if required.

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 8, 2021

Codecov Report

Merging #915 (c4d3593) into main (69ce706) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #915   +/-   ##
=======================================
  Coverage   85.34%   85.34%           
=======================================
  Files         803      803           
  Lines       16509    16509           
  Branches     2073     2073           
=======================================
  Hits        14090    14090           
  Misses       2387     2387           
  Partials       32       32           
Impacted Files Coverage Δ
projects/components/src/link/link.component.ts 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 69ce706...c4d3593. Read the comment docs.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

*ngIf="this.navigationPath"
class="ht-link"
[ngClass]="{ disabled: this.disabled }"
[ngClass]="{ disabled: (this.disabled || this.navigationPath)}"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wouldn't we want to negate this? this would eval true if not disabled and a path is provided.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

oh my bad

@github-actions

This comment has been minimized.

@anandtiwary anandtiwary marked this pull request as ready for review June 8, 2021 23:04
@anandtiwary anandtiwary requested a review from a team as a code owner June 8, 2021 23:04
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@anandtiwary anandtiwary merged commit a124263 into main Jun 9, 2021
@anandtiwary anandtiwary deleted the link-nav-changes branch June 9, 2021 17:18
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 9, 2021

Unit Test Results

    4 files  ±0  257 suites  ±0   15m 49s ⏱️ +26s
926 tests ±0  926 ✔️ ±0  0 💤 ±0  0 ❌ ±0 
932 runs  ±0  932 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit a124263. ± Comparison against base commit 69ce706.

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.

2 participants