Skip to content

Conversation

jimchamp
Copy link
Collaborator

Follows #11208

Adds click listener to remove identifier buttons on edit pages.

Technical

Testing

Screenshot

Stakeholders

@Copilot Copilot AI review requested due to automatic review settings September 17, 2025 17:19
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a click event handler to the remove identifier button in the IdentifiersInput Vue component to enable actual removal functionality on edit pages.

  • Adds a click listener that calls removeIdentifier(name, idx) when the remove button is clicked

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@mekarpeles
Copy link
Member

@jimchamp and I tested on his local environment with the following cases:

  1. Logged in as non-admin could add and remove all IDs except ocaids
  2. Admins could add and remove all types
  3. Not logged in was un-testable on dev (due to a difference between prod & dev) i.e. prod throws permission error, dev throws None type AttributeError on is_admin

@mekarpeles mekarpeles merged commit 5799e39 into master Sep 17, 2025
8 checks passed
@mekarpeles
Copy link
Member

mekarpeles commented Sep 17, 2025

Will test on testing.openlibrary.org and confirm with @seabelis before doing a deploy.

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