Skip to content

Force item amounts to update in the UI when modified#1685

Merged
bhollis merged 1 commit intoDestinyItemManager:devfrom
bhollis:amount-updates
May 28, 2017
Merged

Force item amounts to update in the UI when modified#1685
bhollis merged 1 commit intoDestinyItemManager:devfrom
bhollis:amount-updates

Conversation

@bhollis
Copy link
Copy Markdown
Contributor

@bhollis bhollis commented May 21, 2017

As a consequence of my recent bind-once efficiency hacks, updating the amount of stackables as they were moved around broke (#1676). The fix is awkward, but involves making Angular see a completely new object (by cloning and replacing the item) with a new index (by regenerating the index, since amount is part of the index) which will cause it to completely replace the directive.

While I was there I also restricted the source/target items to only be in the same bucket as the item you're moving. Won't change anything, but it'll inspect fewer items.

@bhollis bhollis merged commit 7fb8039 into DestinyItemManager:dev May 28, 2017
@bhollis bhollis deleted the amount-updates branch June 25, 2017 23:56
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.

1 participant