-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI: Clean up Dynamic UI for CRUD #6994
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
05b1be9
use ListItem component for generated items
6c5efd7
add reusable function to extract info about model and method from rou…
4e4bd4f
add action displayattrs to ldap paths
f3e8aba
add reducer for paths object
d9c5c73
update FieldGroupShow template to exclude ID
f0734b4
remove debugger
304be02
don't set a type for array attrs
02d3666
don't show id fields in fieldGroupShow template
512ad2e
display empty arrays and objects in infotablerow component
87bcba8
Merge branch 'master' into ui-gen-crud-cleanup
madalynrose 0133e53
fix stringArray tests
12f7f99
make sure nav links actually show up on list pages
abfcbd3
reroute auth methods to show first tab section, fix capitalization
e47a271
make create link a link, not a button
efa2051
remove delete button from edit pages
ca5b307
remove edit-form test looking for a delete button
0d319f2
show nothing for empty values, even empty arrays in info-table-row
087b7e6
Merge branch 'master' of https://github.com/hashicorp/vault into ui-g…
47ead4a
don't just grab first create/delete path, filter by itemType
4f417c8
remove debugger statement
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,31 @@ | ||
import { inject as service } from '@ember/service'; | ||
import Component from '@ember/component'; | ||
import { getOwner } from '@ember/application'; | ||
|
||
/** | ||
* @module GeneratedItemList | ||
* The `GeneratedItemList` component lists generated items related to mounts (e.g. groups, roles, users) | ||
* | ||
* @example | ||
* ```js | ||
* <GeneratedItemList @model={{model}} @itemType={{itemType/> | ||
* ``` | ||
* | ||
* @property model=null {DS.Model} - The corresponding item model that is being configured. | ||
* @property itemType {String} - the type of item displayed | ||
* | ||
*/ | ||
|
||
export default Component.extend({ | ||
model: null, | ||
itemType: null, | ||
router: service(), | ||
store: service(), | ||
actions: { | ||
refreshItemList() { | ||
let route = getOwner(this).lookup(`route:${this.router.currentRouteName}`); | ||
this.store.clearAllDatasets(); | ||
route.refresh(); | ||
}, | ||
}, | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
import { tabsForAuthSection } from 'vault/helpers/tabs-for-auth-section'; | ||
export default Route.extend({ | ||
beforeModel() { | ||
return this.transitionTo('vault.cluster.access.method.section', 'configuration'); | ||
let { methodType, paths } = this.modelFor('vault.cluster.access.method'); | ||
paths = paths ? paths.navPaths.reduce((acc, cur) => acc.concat(cur.path), []) : null; | ||
const activeTab = tabsForAuthSection([methodType, 'authConfig', paths])[0].routeParams; | ||
return this.transitionTo(...activeTab); | ||
}, | ||
}); |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice cleanup!