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

Add edit button to list page for owner #91

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jongalloway
Copy link
Collaborator

@jongalloway jongalloway commented Jan 8, 2025

Fixes #90

Add an edit button for the owner of the list on the list page.

  • Add an edit button in Client/Pages/Public.razor that is visible only to the owner of the list.
  • Add logic to check if the current user is the owner of the list by comparing the user ID with the linkBundle.UserId.
  • Implement navigation to the edit page with the correct LinkBundle when the edit button is clicked.

For more details, open the Copilot Workspace session.

Fixes #90

Add an edit button for the owner of the list on the list page.

* Add an edit button in `Client/Pages/Public.razor` that is visible only to the owner of the list.
* Add logic to check if the current user is the owner of the list by comparing the user ID with the `linkBundle.UserId`.
* Implement navigation to the edit page with the correct `LinkBundle` when the edit button is clicked.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/the-urlist/blazor-static-web-apps/issues/90?shareId=XXXX-XXXX-XXXX-XXXX).
@jongalloway jongalloway requested a review from Copilot January 8, 2025 23:52

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Copy link

github-actions bot commented Jan 8, 2025

Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-beach-0248a5a0f-91.eastus2.5.azurestaticapps.net

@jongalloway jongalloway added the enhancement New feature or request label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Up Next
Development

Successfully merging this pull request may close these issues.

Add edit button to a list page when viewed by owner
1 participant