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

Remove edit button only for terraform enterprise #2564

Merged
merged 7 commits into from
Sep 12, 2024

Commits on Sep 6, 2024

  1. Simplify isPublicContentRepo expression

    Since `isHcp` and `isSentinel` aren't used elsewhere, this expression can be
    simplified down to a one-liner
    
    Co-authored-by:  Heat Hamilton <[email protected]>
    rmainwork and heatlikeheatwave committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    cc1fb0f View commit details
    Browse the repository at this point in the history
  2. Use URL to detect terraform enterprise

    This will hide the "Edit on GitHub" link for terraform enterprise only
    rmainwork committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    c991e25 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. Configuration menu
    Copy the full SHA
    66adda2 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Move private repo logic from server.ts to loader

    Since logic was implemented in the loader to hide the "Edit this page on
    GitHub" link for PTFE, it makes sense to move the other (similar) logic
    there too to keep everything together.
    
    Additionally, this also allows the expression to be cleaned up to use
    `this.opts.product` and `Array.includes()` to detect private repos.
    rmainwork committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    b6253f4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bf1b7b5 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. Configuration menu
    Copy the full SHA
    784fcd4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    665b3d9 View commit details
    Browse the repository at this point in the history