Website: Update default filters for query library, remove tag capitalization (#5523)
* update tag formatting + query library default filters * make all tags lower case
This commit is contained in:
+2
-2
@@ -6,9 +6,9 @@ parasails.registerPage('query-library', {
|
||||
inputTextValue: '',
|
||||
inputTimers: {},
|
||||
searchString: '', // The user input string to be searched against the query library
|
||||
selectedKind: 'all queries', // Initially set to all, the user may select a different option to filter queries by purpose (e.g., "all queries", "informational", "policies")
|
||||
selectedKind: 'policy', // Initially set to 'policy', the user may select a different option to filter queries by purpose (e.g., "all queries", "informational", "policies")
|
||||
selectedPlatform: 'all platforms', // Initially set to all, the user may select a different option to filter queries by platform (e.g., "all platforms", "macOS", "Windows", "Linux")
|
||||
selectedTag: '', // Initially set to a blank string, the user may select a tag filter queries by.
|
||||
selectedTag: 'built-in', // Initially set to the 'built-in' tag, the user may select a different tag to filter queries by.
|
||||
},
|
||||
|
||||
computed: {
|
||||
|
||||
+2
-2
@@ -50,8 +50,8 @@ module.exports = {
|
||||
let formattedTags = [];
|
||||
for (let tag of tagsToFormat) {
|
||||
if(tag !== '') {// « Ignoring any blank tags caused by trailing commas in the YAML.
|
||||
// Formatting tags in sentence case, and removing any extra whitespace.
|
||||
formattedTags.push(_.capitalize(_.trim(tag)));
|
||||
// Removing any extra whitespace from tags and changing them to be in lower case.
|
||||
formattedTags.push(_.trim(tag.toLowerCase()));
|
||||
}
|
||||
}
|
||||
// Removing any duplicate tags.
|
||||
|
||||
Reference in New Issue
Block a user