NameNSDescription ns dropdown alphabetical

This commit is contained in:
Nancy Butler 2019-12-09 10:57:03 -07:00
parent c6aa0ebb0b
commit b0b828e927
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
<script>
import { get } from '../../utils/object';
import { sortBy } from '../../utils/sort';
import { NAMESPACE, ANNOTATION } from '~/config/types';
import { NAMESPACES } from '@/store/prefs';
import { _CREATE, _VIEW } from '~/config/query-params';
@ -98,12 +99,12 @@ export default {
namespaces() {
const choices = this.$store.getters['cluster/all'](NAMESPACE);
return choices.map((obj) => {
return sortBy(choices.map((obj) => {
return {
label: obj.nameDisplay,
value: obj.id,
};
});
}), 'label');
},
onlyForCreate() {