Skip to content

Instantly share code, notes, and snippets.

@splinter
Last active August 10, 2016 06:52
Show Gist options
  • Save splinter/545601fbda34aec1fdea9b0770f981cb to your computer and use it in GitHub Desktop.
Save splinter/545601fbda34aec1fdea9b0770f981cb to your computer and use it in GitHub Desktop.
// Following is to remove the edit button in the detail page since for asset types
// wsdl, wadl, swagger, policy, schema, the edit operations are not allowed
for(var index = 0; index < page.leftNav.length; index++) {
var button = page.leftNav[index];
// if(button.iconClass === "btn-edit") {
// page.leftNav.splice(index, 1);
// index--;
// }
if(button.iconClass === "btn-copy") {
page.leftNav.splice(index, 1);
index--;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment