feat(ui) - custom metrics - wip

This commit is contained in:
Shekar Siri 2022-03-04 13:05:51 +01:00
parent 04326494e6
commit a030b2b955
3 changed files with 4 additions and 4 deletions

View file

@ -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>

View file

@ -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 }),
});
}

View file

@ -19,7 +19,7 @@ module.exports = {
// 'backgroundSize',
// 'borderCollapse',
'borderColor',
// 'borderOpacity',
'borderOpacity',
'borderRadius',
// 'borderStyle',
'borderWidth',