Skip to content

Commit

Permalink
Fix the error message for (GEO)WARNING: When titles are not found in …
Browse files Browse the repository at this point in the history
…the metadata, it is unnecessary to notify the user with a notifier, as the feedback is already handled within the map component.
  • Loading branch information
aldelucaizs committed Nov 15, 2024
1 parent 9852bf7 commit 041cc1a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ <h3 class="card-title" data-i18n-key="legend">Legend</h3>
<div class="footer-info">
<div class="info">
<p><span data-i18n-key="cookies_notice">Questa applicazione non utilizza cookies.</span></p>
<p><span data-i18n-key="last_updated_on">Last updated on</span> <span class="last-update-date">2024-11-13</span></p>
<p><span data-i18n-key="last_updated_on">Last updated on</span> <span class="last-update-date">__LAST_UPDATE__</span></p>
<p class="copyright">&copy; <span class="copyright-year"></span> IZSAM 'G. Caporale'</p>
</div>
</div>
Expand Down
8 changes: 0 additions & 8 deletions js/file-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,14 +452,6 @@ gtiz_file_handler.parseMetadata = function(msg, lines, header_index) {
} else {
let message = '(GEO)WARNING: titles not found in metadata:' + gtiz_file_handler.Meta2GeoJSON.xName +', '+ gtiz_file_handler.Meta2GeoJSON.yName;
console.log(message);
let title = '<i class="iconic iconic-warning-triangle"></i> ' + gtiz_locales.current.oops;
let contents = [];
let content = document.createElement('p');
content.innerHTML = gtiz_locales.current.metadata_file_generic_problem;
contents.push(content);
let feedback = '<p>' + message + '</p>';
let f_type = 'warning';
gtiz_modal.buildNotifier(title, contents, feedback, f_type);
}
gtiz_tree.tree.changeCategory(category);
gtiz_tree.tree.setNodeText(category);
Expand Down

0 comments on commit 041cc1a

Please sign in to comment.