Commit 836adaae authored by Leigh B Stoller's avatar Leigh B Stoller

Lets try to reduce a bit of confusion on the manage profile page:

1. When operating on a git based repo, kill the file upload button.

2. When doing a copy/clone kill the file upload button and the git repo
   button.

3. When operating on a portal converted profile, kill the file upload
   button and the git repo button.
parent 0022f596
......@@ -1705,6 +1705,22 @@ $(function ()
$('#edit_topo_modal_button').html('View Topology');
$('#show_source_modal_button').html('View Code');
}
if (fromrepo) {
// Hide the file upload button, user is committed
$('#sourcefile-button-div').addClass("hidden");
}
if (portal_converted) {
// Hide the file upload button, user is committed
$('#sourcefile-button-div').addClass("hidden");
// Ditto the git-repo button.
$('#git-repo-button-div').addClass("hidden");
}
if (window.CLONING || window.COPYING) {
// Hide the file upload button, user is committed
$('#sourcefile-button-div').addClass("hidden");
// Ditto the git-repo button.
$('#git-repo-button-div').addClass("hidden");
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment