Skip to content

Commit

Permalink
Version info in server dialog (fixes #311)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmmjackson committed Oct 27, 2021
1 parent c87c249 commit 13e990b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion rsconnect_jupyter/static/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,8 @@ define([
' </div>',
' <input type="submit" hidden>',
' </fieldset>',
'</form>'
'</form>',
'<div id="version-info"></div>'
].join(''),

// allow raw html
Expand All @@ -607,6 +608,12 @@ define([
this.$radioDisableTLSVerification = this.dialog.find('#disable-tls-verification');
this.$txtServer.val(this.inServerAddress);
this.$txtServerName.val(this.inServerName);
this.dialog.find('#version-info').html(
'rsconnect-jupyter server extension version: ' +
rsconnectVersionInfo.rsconnect_jupyter_server_extension + '<br />' +
'rsconnect-jupyter nbextension version: ' + rsconnectVersionInfo.js_version + '<br />' +
'rsconnect-python version:' + rsconnectVersionInfo.rsconnect_python_version
);
var that = this;
function addCertificateUpload() {
var certificateUpload = document.createElement('input');
Expand Down

0 comments on commit 13e990b

Please sign in to comment.