ui: Re-hook up regenerate button (#14015)

This commit is contained in:
John Cowen 2022-08-03 13:55:57 +01:00 committed by GitHub
parent 58eed6b049
commit 17d712c039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -20,6 +20,11 @@ export default {
}
},
success: {
on: {
RESET: {
target: 'idle'
}
}
},
error: {},
},

View File

@ -52,7 +52,10 @@
item=@item
token=fsm.state.context.PeeringToken
regenerate=@regenerate
onclick=(queue (set @item 'Name' ''))
onclick=(queue
(set @item 'Name' '')
(fn fsm.dispatch 'RESET')
)
)
Actions=(component "consul/peer/form/token/actions"
token=fsm.state.context.PeeringToken