Adapt user jobview to new version, fix refresher

- add manually triggered refresh function to jobList
- Changing displayed metrics requires hard refresh (F5) to load data
-> Under investigation
This commit is contained in:
Christoph Kluge
2023-05-08 18:06:36 +02:00
parent 760d3dec0f
commit b5a5def3a6
2 changed files with 74 additions and 71 deletions

View File

@@ -53,15 +53,19 @@
}
}
const client = getContextClient();
const query = gql`
mutation($name: String!, $value: String!) {
updateConfiguration(name: $name, value: $value)
}
`;
const updateConfiguration = ({ name, value }) => {
result = mutationStore({
client: getContextClient(),
query: gql`mutation($name: String!, $value: String!) {
updateConfiguration(name: $name, value: $value)
}`,
variables: {name, value}
})
}
mutationStore({
client,
query,
variables: { name, value },
})}
let columnHovering = null
@@ -89,13 +93,9 @@
isOpen = false
updateConfiguration({
name: cluster == null ? configName : `${configName}:${cluster}`,
value: JSON.stringify(metrics)
})
.then(res => {
if (res.error)
console.error(res.error)
})
name: cluster == null ? configName : `${configName}:${cluster}`,
value: JSON.stringify(metrics)
})
}
</script>