mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
show User Impersonate only when interpreter setting is "per user" and "isolated"
This commit is contained in:
parent
02c308423a
commit
5a76839750
3 changed files with 8 additions and 2 deletions
|
|
@ -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;">
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;">
|
||||
|
|
|
|||
Loading…
Reference in a new issue