adds flag for enabling jit acl

This commit is contained in:
Seyi Adebajo 2018-03-27 16:11:48 -07:00
parent d82a55b3c7
commit 5081bc996e
2 changed files with 10 additions and 5 deletions

View File

@ -79,7 +79,8 @@ export default Route.extend({
async setupController(controller, model) {
set(controller, 'model', model);
setProperties(controller, {
isInternal: await get(this, 'configurator').getConfig('isInternal')
isInternal: await get(this, 'configurator').getConfig('isInternal'),
isJitAclAccessEnabled: await get(this, 'configurator').getConfig('isJitAclAccessEnabled')
});
}
});

View File

@ -59,7 +59,9 @@
{{/tablist.tab}}
{{/unless}}
{{#tablist.tab tabIds.Access on-select=(action "tabSelectionChanged")}}ACL Access{{/tablist.tab}}
{{#if isJitAclAccessEnabled}}
{{#tablist.tab tabIds.Access on-select=(action "tabSelectionChanged")}}ACL Access{{/tablist.tab}}
{{/if}}
{{#tablist.tab tabIds.Schema on-select=(action "tabSelectionChanged")}}Schema{{/tablist.tab}}
@ -119,9 +121,11 @@
}}
{{/tabs.tabpanel}}
{{#tabs.tabpanel tabIds.Access}}
{{datasets/containers/dataset-acl-access urn=encodedUrn}}
{{/tabs.tabpanel}}
{{#if isJitAclAccessEnabled}}
{{#tabs.tabpanel tabIds.Access}}
{{datasets/containers/dataset-acl-access urn=encodedUrn}}
{{/tabs.tabpanel}}
{{/if}}
{{/ivy-tabs}}
</div>