diff --git a/scm-ui/src/components/forms/Select.js b/scm-ui/src/components/forms/Select.js index 184359cc11..822e476135 100644 --- a/scm-ui/src/components/forms/Select.js +++ b/scm-ui/src/components/forms/Select.js @@ -1,5 +1,6 @@ //@flow import React from "react"; +import classNames from "classnames"; export type SelectItem = { value: string, @@ -10,7 +11,8 @@ type Props = { label?: string, options: SelectItem[], value?: SelectItem, - onChange: string => void + onChange: string => void, + loading?: boolean }; class Select extends React.Component { @@ -37,12 +39,15 @@ class Select extends React.Component { }; render() { - const { options, value } = this.props; - + const { options, value, loading } = this.props; + const loadingClass = loading ? "is-loading" : ""; return (
{this.renderLabel()} -
+