Skip to content

edit(loans): loan dates now only editable when active or pending - #713

Open
callumlewis05 wants to merge 2 commits into
inveniosoftware:masterfrom
callumlewis05:editable-loan-dates
Open

edit(loans): loan dates now only editable when active or pending#713
callumlewis05 wants to merge 2 commits into
inveniosoftware:masterfrom
callumlewis05:editable-loan-dates

Conversation

@callumlewis05

@callumlewis05 callumlewis05 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Loans dates can now only be edited if the loan is active or pending. When the edit button is clicked a popup appears with an error message if the loan is returned or cancelled.

UI after clicking the edit dates return button for each type of loan:

Pending loan:
image

Cancelled loan:
image

Item on loan (active):
image

Returned:
image

@callumlewis05
callumlewis05 requested a review from kpsherva August 3, 2026 08:02

@kpsherva kpsherva left a comment

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.

LGTM, could you add a screenshot of changes?
Please try to provide screenshots any time there is a change in the interface, it makes it easier to evaluate in terms of the UX.

@callumlewis05

Copy link
Copy Markdown
Contributor Author

LGTM, could you add a screenshot of changes? Please try to provide screenshots any time there is a change in the interface, it makes it easier to evaluate in terms of the UX.

Done 👍

@kpsherva

kpsherva commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

thanks! now it is much easier to understand the change.
Wouldn't it be easier to disable the edit period of interest button if the loan is cancelled or returned? Imagine yourself being the librarian and clicking to edit, only to find out from the modal that you can't... Sometimes this might be frustrating. Is it a lot of work to block the button before this happens? Of course, we need this message on why it is blocked as well - we usually use the Tooltip cmp for this reason.

@callumlewis05

Copy link
Copy Markdown
Contributor Author

thanks! now it is much easier to understand the change. Wouldn't it be easier to disable the edit period of interest button if the loan is cancelled or returned? Imagine yourself being the librarian and clicking to edit, only to find out from the modal that you can't... Sometimes this might be frustrating. Is it a lot of work to block the button before this happens? Of course, we need this message on why it is blocked as well - we usually use the Tooltip cmp for this reason.

Okay I will look at greying out the button and adding the tooltip if the button is clicked on

@callumlewis05

Copy link
Copy Markdown
Contributor Author

Greyed out button so it is not clickable and added tooltip for cancelled and returned loans.

Cancelled:
image

Returned:
image

@callumlewis05
callumlewis05 requested a review from kpsherva August 4, 2026 13:23
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.

Editable loan dates on 'returned' loan should not be possible

2 participants