feat(ui) - custom metrics - wip
This commit is contained in:
parent
04326494e6
commit
a030b2b955
3 changed files with 4 additions and 4 deletions
|
|
@ -36,7 +36,7 @@ function SeriesName(props: Props) {
|
|||
<input
|
||||
ref={ ref }
|
||||
name="name"
|
||||
className="fluid border-0 -mx-2 px-2"
|
||||
className="fluid border-0 -mx-2 px-2 h-8"
|
||||
value={name}
|
||||
// readOnly={!editing}
|
||||
onChange={write}
|
||||
|
|
@ -44,7 +44,7 @@ function SeriesName(props: Props) {
|
|||
onFocus={() => setEditing(true)}
|
||||
/>
|
||||
) : (
|
||||
<div className="text-base">{name}</div>
|
||||
<div className="text-base h-8 flex items-center border-transparent">{name}</div>
|
||||
)}
|
||||
|
||||
<div className="ml-3 cursor-pointer" onClick={() => setEditing(true)}><Icon name="pencil" size="14" /></div>
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ export const init = (instance = null, forceNull = false) => (dispatch, getState)
|
|||
export const fetchSessionList = (params) => (dispatch, getState) => {
|
||||
dispatch({
|
||||
types: array(FETCH_SESSION_LIST),
|
||||
call: client => client.post(`/custom_metrics/sessions`, { ...params }),
|
||||
call: client => client.post(`/custom_metrics/${params.metricId}/sessions`, { ...params }),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ module.exports = {
|
|||
// 'backgroundSize',
|
||||
// 'borderCollapse',
|
||||
'borderColor',
|
||||
// 'borderOpacity',
|
||||
'borderOpacity',
|
||||
'borderRadius',
|
||||
// 'borderStyle',
|
||||
'borderWidth',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue