Kenia 31bcf71d63
ui: Add sorting to namespaces (#8405)
* Add sorting to namespaces

* Add sorting to namespaces

* ui: Fix up default namespace no delete test (#8467)

Co-authored-by: John Cowen <johncowen@users.noreply.github.com>
2020-08-10 10:54:51 -04:00

9 lines
328 B
JavaScript

export default (collection, clickable, attribute, text, actions) => () => {
return collection('.consul-nspace-list [data-test-list-row]', {
nspace: clickable('a'),
name: attribute('data-test-nspace', '[data-test-nspace]'),
description: text('[data-test-description]'),
...actions(['edit', 'delete']),
});
};