Skip to content

Commit

Permalink
add filter by item name of poe.ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
cscs8 committed Jul 25, 2020
1 parent 0d70e0b commit a6205d9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/app/shared/module/poe/price/item-price-rates.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class ItemPriceRatesProvider {
change: sparkLine.totalChange,
history: sparkLine.data,
chaosAmount: line.chaosEquivalent,
url: response.url
url: response.url + this.getUrlSuffix(line.currencyTypeName)
};
return rate;
})
Expand Down Expand Up @@ -199,12 +199,17 @@ export class ItemPriceRatesProvider {
change: sparkLine.totalChange,
history: sparkLine.data,
chaosAmount: line.chaosValue,
url: response.url
url: response.url + this.getUrlSuffix(line.name)
};
return rate;
})
};
return result;
}));
}

private getUrlSuffix(name: string): string {
return `?name=${encodeURIComponent(name)}`;
}

}

0 comments on commit a6205d9

Please sign in to comment.