mirror of
https://github.com/pawelorzech/MacTorn.git
synced 2026-01-29 19:54:27 +00:00
fix: Update Torn.com item market URLs to new format.
This commit is contained in:
parent
b443ef3eeb
commit
ca7d0dfe84
1 changed files with 2 additions and 2 deletions
|
|
@ -86,7 +86,7 @@ struct WatchlistView: View {
|
||||||
} else if !appState.watchlistItems.isEmpty {
|
} else if !appState.watchlistItems.isEmpty {
|
||||||
ForEach(appState.watchlistItems) { item in
|
ForEach(appState.watchlistItems) { item in
|
||||||
WatchlistPriceRow(item: item) {
|
WatchlistPriceRow(item: item) {
|
||||||
openURL("https://www.torn.com/imarket.php#/p=shop&step=shop&type=&searchname=\(item.name.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? item.name)")
|
openURL("https://www.torn.com/page.php?sid=ItemMarket#/market/view=item&itemID=\(item.id)")
|
||||||
} onRemove: {
|
} onRemove: {
|
||||||
appState.removeFromWatchlist(item.id)
|
appState.removeFromWatchlist(item.id)
|
||||||
}
|
}
|
||||||
|
|
@ -98,7 +98,7 @@ struct WatchlistView: View {
|
||||||
// Quick Market Links
|
// Quick Market Links
|
||||||
HStack(spacing: 8) {
|
HStack(spacing: 8) {
|
||||||
ActionButton(title: "Item Market", icon: "bag.fill", color: .blue) {
|
ActionButton(title: "Item Market", icon: "bag.fill", color: .blue) {
|
||||||
openURL("https://www.torn.com/imarket.php")
|
openURL("https://www.torn.com/page.php?sid=ItemMarket")
|
||||||
}
|
}
|
||||||
|
|
||||||
ActionButton(title: "Points", icon: "star.fill", color: .orange) {
|
ActionButton(title: "Points", icon: "star.fill", color: .orange) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue