Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Jan 2, 2024
1 parent 4fbc624 commit c0db38d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Item Piles Changelog

## Version 2.8.15

- Fixed players not being able to sort vaults

## Version 2.8.14

- Fixed issue with not being able to drop items into vault
Expand Down
14 changes: 8 additions & 6 deletions src/applications/vault-app/vault-shell.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -415,12 +415,14 @@
<div class="item-piles-flexrow" style="margin-top: 0.25rem; flex:0 1 auto;">
<div style="flex: 0 1 auto;">
<button type="button" class="item-piles-small-button" on:click={(event) => store.sortItemsOnGrid(event)}
data-tooltip={localize("ITEM-PILES.Vault.SortItemsTooltip")}>
{localize("ITEM-PILES.Vault.SortItems")}
</button>
</div>
{#if gridData.canOrganize}
<div style="flex: 0 1 auto;">
<button type="button" class="item-piles-small-button" on:click={(event) => store.sortItemsOnGrid(event)}
data-tooltip={localize("ITEM-PILES.Vault.SortItemsTooltip")}>
{localize("ITEM-PILES.Vault.SortItems")}
</button>
</div>
{/if}
<CurrencyList {currencies}
options={{ abbreviations: false, imgSize: 18, abbreviateNumbers: true }}
Expand Down
6 changes: 4 additions & 2 deletions src/stores/vault-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,10 @@ export class VaultStore extends ItemPileStore {
[CONSTANTS.FLAGS.ITEM]: PileUtilities.cleanItemFlagData(PileUtilities.getItemFlagData(item))
}))

await this.actor.updateEmbeddedDocuments("Item", itemUpdates);
await this.actor.deleteEmbeddedDocuments("Item", deletions);
return ItemPileSocket.executeAsGM(ItemPileSocket.HANDLERS.COMMIT_ACTOR_CHANGES, this.actor.uuid, {
itemsToUpdate: itemUpdates,
itemsToDelete: deletions
});

}

Expand Down

0 comments on commit c0db38d

Please sign in to comment.