show User Impersonate only when interpreter setting is "per user" and "isolated"

This commit is contained in:
Prabhjyot Singh 2016-11-10 11:59:22 +05:30
parent 02c308423a
commit 5a76839750
3 changed files with 8 additions and 2 deletions

View file

@ -196,7 +196,8 @@ limitations under the License.
</div>
</div>
</div>
<div class="row interpreter" style="margin-top: 5px;" ng-hide="ticket.principal=='anonymous'">
<div class="row interpreter" style="margin-top: 5px;"
ng-show="getInterpreterRunningOption(setting.id)=='Per User' && getPerUserOption(setting.id)=='isolated'">
<div class="col-md-12">
<div class="checkbox remove-margin-top-bottom">
<span class="input-group" style="line-height:30px;">

View file

@ -329,6 +329,10 @@
if (setting.option.isUserImpersonate === undefined) {
setting.option.isUserImpersonate = false;
}
if (!($scope.getInterpreterRunningOption(settingId) === 'Per User' &&
$scope.getPerUserOption(settingId) === 'isolated')) {
setting.option.isUserImpersonate = false;
}
if (setting.option.remote === undefined) {
// remote always true for now
setting.option.remote = true;

View file

@ -310,7 +310,8 @@ limitations under the License.
</div>
</div>
<div class="row interpreter" style="margin-top: 5px;" ng-hide="ticket.principal=='anonymous'">
<div class="row interpreter" style="margin-top: 5px;"
ng-show="getInterpreterRunningOption(setting.id)=='Per User' && getPerUserOption(setting.id)=='isolated'">
<div class="col-md-12">
<div class="checkbox remove-margin-top-bottom">
<span class="input-group" style="line-height:30px;">