Skip to content

Commit

Permalink
Check P-plots readiness
Browse files Browse the repository at this point in the history
  • Loading branch information
blokhin committed Dec 28, 2024
1 parent bbfe39a commit 2359e30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src_js/main_logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,13 @@ function open_context(el, launch_ext){
$('#download_bib').show();

} else if (rank == 1){
$('#download_bib, #download_pdf, #visualize, #download_png').show();
$('#download_bib, #download_pdf').show();
$.ajax({
type: 'GET',
url: wmgui.path_pp_ping + entry,
}).done(function(data){
$('#visualize, #download_png').show();
}).fail(function(xhr, textStatus, errorThrown){});

} else if (rank == 2){
$('#download_bib, #download_pdf, #download_json').show();
Expand Down
1 change: 1 addition & 0 deletions src_js/wmsettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ wmgui.path_s_entry = '#' + wmgui.api_host + '/download/s?fmt=cif&q=';
wmgui.path_s_xrpd = '#' + wmgui.api_host + '/download/s?fmt=xrpd&q=';
wmgui.path_sd_plot = '#' + wmgui.api_host + '/download/p?fmt=json&q=';
wmgui.path_pp_plot = '#https://data.mpds.io/export?fmt=json&q='; // TODO
wmgui.path_pp_ping = wmgui.prod ? 'https://data.mpds.io/ping?q=' : 'http://localhost:8080/ping?q=';

wmgui.engines_addrs = {
'cifplayer': '/webassets/iframe_cifplayer.html',
Expand Down

0 comments on commit 2359e30

Please sign in to comment.