Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

[UI Script] Hide the Move button on the Copy/Move dialog


#1

The following UI script hides the Move button on the Copy/Move dialog for all non-admin users. The Move functionality can also be disabled when removing the “delete” permissions for cases. This UI script is useful for the case where deleting test cases may still be desired even if moving them from one project to another isn’t.

[code]name: Hide Move button for Copy/Move dialog
description: Hides the Move button for Copy/Move dialogs
author: Gurock Software
version: 1.0
includes: ^suites/view
excludes:

js:
(document).ready( function() { if (!uiscripts.context.user.is_admin) { (’#moveCasesButton’).remove();
$(’#moveCasesDisabledButton’).remove();
}
}
);[/code]

Regards,
Tobias