mirror of
https://github.com/ansible/awx.git
synced 2026-04-12 21:49:24 -02:30
215 templates list skeleton (#251)
* adding package-lock.json * deleted unsured file * Removes and unused file * Fixes errant styling change * Fixes an error and uses a prop that PF recognizes * Updates PR to use API Modules * Fixes PR Issues * Addes tests to Templates * Addresses PR Issues * Revert package-lock.json
This commit is contained in:
@@ -14,3 +14,10 @@ export function getArticle (str) {
|
||||
export function ucFirst (str) {
|
||||
return `${str[0].toUpperCase()}${str.substr(1)}`;
|
||||
}
|
||||
|
||||
export const toTitleCase = (type) => type
|
||||
.toLowerCase()
|
||||
.split('_')
|
||||
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
|
||||
.join(' ');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user