Skip to content

Commit

Permalink
fixes for presets page
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzmatazzz committed Nov 1, 2024
1 parent f686963 commit 26c6128
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tarkov-data-manager/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2014,7 +2014,7 @@ app.get('/presets/get', async (req, res) => {
});
preset.image_8x_link = items.get(preset.id)?.image_8x_link;
preset.image_512_link = items.get(preset.id)?.image_512_link;
preset.image_link = items.get(preset.id)?.image_link;
preset.image_link = items.get(preset.id)?.image_link ?? null;
preset.base_image_link = items.get(preset.id)?.base_image_link;
preset.grid_image_link = items.get(preset.id)?.grid_image_link;
preset.icon_link = items.get(preset.id)?.icon_link;
Expand Down
6 changes: 5 additions & 1 deletion src/tarkov-data-manager/public/presets.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ const existingImageElement = (itemId, imageType, url) => {
`;
};

const missingImageElement = (imageType) => {
return `<span class="tooltipped" style="cursor: default" data-tooltip="${imageType} image">🚫</span>`;
};

$(document).ready( function () {
//$('.tooltipped').tooltip();
//$('.modal').modal();
Expand All @@ -22,7 +26,7 @@ $(document).ready( function () {
method: 'get',
dataType: 'json',
url: '/presets/get/game',
}).done(function (data) {
}).done((data) => {
gamePresets = data;
});

Expand Down

0 comments on commit 26c6128

Please sign in to comment.