Minor code and logic cleanup to maintain non revamped version on prod

This commit is contained in:
cptran777 2018-04-23 10:25:41 -07:00
parent ef71609f3d
commit 859627bcd2
3 changed files with 19 additions and 4 deletions

View File

@ -106,7 +106,7 @@ export default class DatasetRoute extends Route {
setProperties(controller, {
isInternal: !!isInternal,
jitAclAccessWhitelist: jitAclAccessWhitelist || [],
showOwnership: 'show' || showOwnership
showOwnership: showOwnership || 'hide'
});
}

View File

@ -31,6 +31,21 @@
{{/unless}}
{{#unless (eq showOwnership "show")}}
<td>
{{#if owner.modifiedTime}}
{{moment-calendar owner.modifiedTime sameElse="MMM Do YYYY, h:mm a"}}
{{else}}
<span
class="nacho-button nacho-button--small dataset-author-record__indicator--disabled">
Not Saved
</span>
{{/if}}
</td>
{{/unless}}
<td>
{{ember-selector
class=(unless isOwnerMutable "nacho-select--hidden-state")

View File

@ -37,12 +37,12 @@
<table class="nacho-table nacho-table--bordered dataset-owner-table">
<thead>
<tr>
<th class={{if (eq showOwnership "show") "dataset-author-column--extra-wide" "dataset-author-column--wide"}}>
<th class="dataset-author-column--extra-wide">
LDAP Username
</th>
<th class={{if (eq showOwnership "show") "dataset-author-column--extra-wide"}}>Full Name</th>
<th class="dataset-author-column--extra-wide">Full Name</th>
<th class="dataset-author-column--narrow">ID Type</th>
<th class={{if (eq showOwnership "show") "dataset-author-column--wide"}}>
<th class="dataset-author-column--wide">
Ownership Type
<!--TODO: DSS-6716-->