parent
e405d47cea
commit
84f6faf693
@ -130,7 +130,7 @@ export const Package = ({
|
||||
sortBy,
|
||||
onRowClick
|
||||
}) => (
|
||||
<TableTrActionable onClick={() => onRowClick({ id, selected })}>
|
||||
<TableTrActionable onClick={() => onRowClick(id)}>
|
||||
<TableTd right selected={selected}>
|
||||
<FormGroup name="package" value={id} type="radio" field={Field} fluid>
|
||||
<Radio onBlur={null} noMargin>
|
||||
|
@ -25,8 +25,8 @@ it('renders <Item mutating /> without throwing', () => {
|
||||
<Theme>
|
||||
<Table>
|
||||
<TableTbody>
|
||||
<Item mutating='start' />
|
||||
<Item mutating='remove' />
|
||||
<Item mutating="start" />
|
||||
<Item mutating="remove" />
|
||||
</TableTbody>
|
||||
</Table>
|
||||
</Theme>
|
||||
|
@ -26,8 +26,8 @@ it('<Item mutating />', async () => {
|
||||
<Theme ss>
|
||||
<Table>
|
||||
<TableTbody>
|
||||
<Item mutating='start' />
|
||||
<Item mutating='remove' />
|
||||
<Item mutating="start" />
|
||||
<Item mutating="remove" />
|
||||
</TableTbody>
|
||||
</Table>
|
||||
</Theme>
|
||||
|
@ -35,14 +35,7 @@ const loadingState = {
|
||||
remove: 'Removing...'
|
||||
};
|
||||
|
||||
export const Item = ({
|
||||
name,
|
||||
state,
|
||||
created,
|
||||
onStart,
|
||||
onRemove,
|
||||
mutating
|
||||
}) => (
|
||||
export const Item = ({ name, state, created, onStart, onRemove, mutating }) => (
|
||||
<TableTr>
|
||||
{!mutating ? (
|
||||
<Fragment>
|
||||
|
@ -75,7 +75,8 @@ exports[`renders <Menu links /> without throwing 1`] = `
|
||||
padding: 0.8125rem 0rem;
|
||||
margin: 1.125rem 0 0 0;
|
||||
max-height: 50px;
|
||||
overflow-x: scroll;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
box-sizing: border-box;
|
||||
display: -webkit-inline-box;
|
||||
display: -webkit-inline-flex;
|
||||
|
@ -3394,7 +3394,7 @@ Array [
|
||||
className="c7"
|
||||
>
|
||||
<span>
|
||||
hello—
|
||||
hello:
|
||||
</span>
|
||||
<span>
|
||||
world
|
||||
@ -4563,7 +4563,7 @@ Array [
|
||||
className="c7"
|
||||
>
|
||||
<span>
|
||||
hello2—
|
||||
hello2:
|
||||
</span>
|
||||
<span>
|
||||
world2
|
||||
@ -6003,7 +6003,7 @@ Array [
|
||||
className="c7"
|
||||
>
|
||||
<span>
|
||||
hello—
|
||||
hello:
|
||||
</span>
|
||||
<span>
|
||||
world
|
||||
@ -7191,7 +7191,7 @@ Array [
|
||||
className="c7"
|
||||
>
|
||||
<span>
|
||||
hello2—
|
||||
hello2:
|
||||
</span>
|
||||
<span>
|
||||
world2
|
||||
|
@ -20,7 +20,7 @@ const FORM_NAME_EDIT = i => `CREATE-INSTANCE-AFFINITY-EDIT-${i}`;
|
||||
|
||||
const RULE_DEFAULTS = {
|
||||
'rule-instance-name': '',
|
||||
'rule-instance-conditional': 'must',
|
||||
'rule-instance-conditional': 'should',
|
||||
'rule-instance-placement': 'same',
|
||||
'rule-instance-tag-key-pattern': 'equalling',
|
||||
'rule-instance-tag-value-pattern': 'equalling',
|
||||
|
@ -160,7 +160,7 @@ export default compose(
|
||||
const error = get(form, `${CREATE_FORM}.error`, null);
|
||||
const name = get(form, `${FORM_NAME}.values.name`, '');
|
||||
const image = get(form, 'create-instance-image.values.image', '');
|
||||
const pkg = get(form, 'create-instance-package.values.package', '');
|
||||
const pkg = get(values, 'selected-package', '');
|
||||
const networks = get(form, 'CREATE-INSTANCE-NETWORKS.values', {});
|
||||
|
||||
const enabled =
|
||||
|
@ -239,8 +239,8 @@ export default compose(
|
||||
handleResetFilters: () => {
|
||||
dispatch(destroy(`${FORM_NAME}-filters`));
|
||||
},
|
||||
handleRowClick: ({ id, selected }) => {
|
||||
dispatch(change(FORM_NAME, id, !selected));
|
||||
handleRowClick: id => {
|
||||
dispatch(change(FORM_NAME, 'package', id));
|
||||
},
|
||||
handleSortBy: (newSortBy, sortOrder) => {
|
||||
dispatch([
|
||||
|
@ -453,7 +453,7 @@ exports[`renders <Metadata /> without throwing 1`] = `
|
||||
className="c17"
|
||||
>
|
||||
0
|
||||
key:value pair
|
||||
key-value pair
|
||||
s
|
||||
</h3>
|
||||
</div>
|
||||
@ -1895,7 +1895,7 @@ exports[`renders <Metadata addOpen /> without throwing 1`] = `
|
||||
className="c40"
|
||||
>
|
||||
0
|
||||
key:value pair
|
||||
key-value pair
|
||||
s
|
||||
</h3>
|
||||
</div>
|
||||
@ -2423,7 +2423,7 @@ exports[`renders <Metadata error /> without throwing 1`] = `
|
||||
className="c22"
|
||||
>
|
||||
0
|
||||
key:value pair
|
||||
key-value pair
|
||||
s
|
||||
</h3>
|
||||
</div>
|
||||
@ -4422,7 +4422,7 @@ exports[`renders <Metadata metadata /> without throwing 1`] = `
|
||||
className="c17"
|
||||
>
|
||||
3
|
||||
key:value pair
|
||||
key-value pair
|
||||
s
|
||||
</h3>
|
||||
</div>
|
||||
|
@ -79,7 +79,7 @@ export const Metadata = ({
|
||||
const _count = !_loading ? (
|
||||
<Margin bottom={4} top={addOpen && 4}>
|
||||
<H3>
|
||||
{metadata.length} key:value pair{metadata.length === 1 ? '' : 's'}
|
||||
{metadata.length} key-value pair{metadata.length === 1 ? '' : 's'}
|
||||
</H3>
|
||||
</Margin>
|
||||
) : null;
|
||||
|
@ -213,13 +213,9 @@ export const KeyValue = ({
|
||||
{initialValues.name ? (
|
||||
<Fragment>
|
||||
{expanded ? (
|
||||
<span>{`${initialValues.name}${
|
||||
type === 'metadata' ? '—' : ':'
|
||||
}`}</span>
|
||||
<span>{`${initialValues.name}${': '}`}</span>
|
||||
) : (
|
||||
<Bold>{`${initialValues.name}${
|
||||
type === 'metadata' ? '—' : ':'
|
||||
}`}</Bold>
|
||||
<Bold>{`${initialValues.name}${': '}`}</Bold>
|
||||
)}
|
||||
<span>{initialValues.value}</span>
|
||||
</Fragment>
|
||||
|
@ -276,7 +276,8 @@ exports[`SectionList SectionList 1`] = `
|
||||
padding: 0.8125rem 0rem;
|
||||
margin: 1.125rem 0 0 0;
|
||||
max-height: 50px;
|
||||
overflow-x: scroll;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
box-sizing: border-box;
|
||||
display: -webkit-inline-box;
|
||||
display: -webkit-inline-flex;
|
||||
|
@ -10,7 +10,8 @@ const UnorderedList = styled.ul`
|
||||
padding: ${remcalc(13)} ${remcalc(0)};
|
||||
margin: ${remcalc(18)} 0 0 0;
|
||||
max-height: 50px;
|
||||
overflow-x: scroll;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
box-sizing: border-box;
|
||||
display: inline-flex;
|
||||
position: relative;
|
||||
|
Loading…
Reference in New Issue
Block a user