-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hide remove item button when item not possible to remove
This change applies to Sales Panel. A similar change is needed in the Client Panel. Tested this via integration test and checking if remove url is visible or not in different states. This doesn't test the Turbo mechanism which is used here too. I don't like this duplication between the Rails view button and the same in Turbo call. I suppose we should be less granular and just rerender whole table here instead of single values. Another ugly place is now this if/else in the view. Hard to avoid it, but maybe once we move this view to Ruby code, it can be better structured (plan for the future).
- Loading branch information
1 parent
42b5f29
commit 6cc1461
Showing
4 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters