add telegraf token to popup
parent
e3a9e60329
commit
89195f6e07
|
@ -415,13 +415,13 @@ const createTelegraf = async (dispatch, getState, plugins) => {
|
|||
dispatch(setToken(createdToken.token))
|
||||
|
||||
// create label
|
||||
const label = await client.labels.create('token', {
|
||||
const createdLabel = await client.labels.create('token', {
|
||||
color: '#FFFFFF',
|
||||
description: createdToken.token,
|
||||
})
|
||||
|
||||
// add label to telegraf config
|
||||
await client.telegrafConfigs.addLabel(tc.id, label)
|
||||
const label = await client.telegrafConfigs.addLabel(tc.id, createdLabel)
|
||||
|
||||
const config = {
|
||||
...tc,
|
||||
|
|
|
@ -68,7 +68,7 @@ export class TelegrafInstructionsOverlay extends PureComponent<Props> {
|
|||
return ''
|
||||
}
|
||||
|
||||
return token.description
|
||||
return token.properties.description
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue