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