add telegraf token to popup

pull/12436/head
Andrew Watkins 2019-03-08 15:05:31 -08:00
parent e3a9e60329
commit 89195f6e07
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -68,7 +68,7 @@ export class TelegrafInstructionsOverlay extends PureComponent<Props> {
return ''
}
return token.description
return token.properties.description
}
}