diff --git a/wherehows-web/app/controllers/datasets/dataset.js b/wherehows-web/app/controllers/datasets/dataset.js index 7ba87f18cf..b37364aa41 100644 --- a/wherehows-web/app/controllers/datasets/dataset.js +++ b/wherehows-web/app/controllers/datasets/dataset.js @@ -118,6 +118,12 @@ export default class extends Controller.extend({ */ compliancePolicyHasDrift; + /** + * Contains a list of whitelisted dataset platforms for JIT ACL access + * @type {Array} + */ + jitAclAccessWhitelist; + /** * Flag indicating the dataset policy is derived from an upstream source * @type {boolean} @@ -145,6 +151,17 @@ export default class extends Controller.extend({ return encodeUrn(uri); }); + /** + * Checks if the current platform exists in the supported list of JIT ACL whitelisted platforms + * @type {ComputedProperty} + */ + isJitAclAccessEnabled = computed('jitAclAccessWhitelist', function() { + const jitAclAccessWhitelist = getWithDefault(this, 'jitAclAccessWhitelist', []); + const { platform } = get(this, 'model'); + + return jitAclAccessWhitelist.includes(platform); + }); + constructor() { super(...arguments); this.tabSelected || (this.tabSelected = Tabs.Ownership); diff --git a/wherehows-web/app/routes/datasets/dataset.js b/wherehows-web/app/routes/datasets/dataset.js index 40e253e049..aba56740ad 100644 --- a/wherehows-web/app/routes/datasets/dataset.js +++ b/wherehows-web/app/routes/datasets/dataset.js @@ -80,7 +80,7 @@ export default Route.extend({ set(controller, 'model', model); setProperties(controller, { isInternal: await get(this, 'configurator').getConfig('isInternal'), - isJitAclAccessEnabled: await get(this, 'configurator').getConfig('isJitAclAccessEnabled') + jitAclAccessWhitelist: await get(this, 'configurator').getConfig('JitAclAccessWhitelist') }); } }); diff --git a/wherehows-web/app/styles/components/avatar/_avatars-detail.scss b/wherehows-web/app/styles/components/avatar/_avatars-detail.scss index b45f99f48f..e6aed3dda8 100644 --- a/wherehows-web/app/styles/components/avatar/_avatars-detail.scss +++ b/wherehows-web/app/styles/components/avatar/_avatars-detail.scss @@ -4,7 +4,7 @@ border-radius: 2px; background-color: white; max-height: calc(100vh - 64px); - min-height: item-spacing(7); + min-height: item-spacing(9) * 2; width: 520px; display: flex; flex-direction: column; @@ -65,7 +65,8 @@ align-items: center; &__entity { - flex-grow: 1; + margin-right: item-spacing(2); + width: 48px; } &__meta { @@ -74,9 +75,11 @@ flex-grow: 10; border-bottom: 1px solid rgba(0, 0, 0, 0.15); max-width: 100%; + padding: item-spacing(1 0); } &:last-of-type { + padding-bottom: item-spacing(5); .avatar-detail__meta { border: 0; }