-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add new key_info to the list models for identity endpoints * add details to group and show pages * add parent groups to group tabs * render alias the same everywhere * space tab subnav more like the designs * fix tests * pull tabs in and remove padding
- Loading branch information
Showing
17 changed files
with
128 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import ApplicationSerializer from '../application'; | ||
import Ember from 'ember'; | ||
|
||
export default ApplicationSerializer.extend({ | ||
normalizeItems(payload) { | ||
if (payload.data.keys && Array.isArray(payload.data.keys)) { | ||
return payload.data.keys; | ||
} | ||
Ember.assign(payload, payload.data); | ||
delete payload.data; | ||
return payload; | ||
}, | ||
|
||
extractLazyPaginatedData(payload) { | ||
let list; | ||
list = payload.data.keys.map(key => { | ||
let model = payload.data.key_info[key]; | ||
model.id = key; | ||
return model; | ||
}); | ||
delete payload.data.key_info; | ||
return list.sort((a,b) => { | ||
return a.name.localeCompare(b.name); | ||
}); | ||
}, | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import IdentitySerializer from './_base'; | ||
export default IdentitySerializer.extend(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import IdentitySerializer from './_base'; | ||
export default IdentitySerializer.extend(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
ui/app/templates/components/identity/item-parent-groups.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{{#if model.parentGroupIds.length}} | ||
{{#each model.parentGroupIds as |gid|}} | ||
{{#linked-block | ||
"vault.cluster.access.identity.show" | ||
"groups" | ||
gid | ||
details | ||
class="box is-sideless is-marginless" | ||
}} | ||
<div class="columns is-mobile"> | ||
<div class="column is-10"> | ||
<a href={{href-to "vault.cluster.access.identity.show" "groups" gid "details" }} | ||
class="is-block has-text-black has-text-weight-semibold" | ||
>{{i-con | ||
glyph='folder' | ||
size=14 | ||
class="has-text-grey-light" | ||
}}{{gid}}</a> | ||
</div> | ||
<div class="column has-text-right"> | ||
</div> | ||
</div> | ||
{{/linked-block}} | ||
{{/each}} | ||
{{else}} | ||
<div class="box is-bottomless has-background-white-bis"> | ||
<div class="columns is-centered"> | ||
<div class="column is-half has-text-centered"> | ||
<div class="box is-shadowless has-background-white-bis"> | ||
<p class="has-text-grey"> | ||
This group has no parent groups. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters