feat: add success message on new branch creation
- Added new functionality to emit success message upon creating a new branch.
This commit is contained in:
parent
99f05383cb
commit
d69252a7da
@ -54,7 +54,11 @@ const MessageMenubar: FC<Props> = (props) => {
|
|||||||
|
|
||||||
const onNewBranch = useCallback(() => {
|
const onNewBranch = useCallback(() => {
|
||||||
EventEmitter.emit(EVENT_NAMES.NEW_BRANCH, index)
|
EventEmitter.emit(EVENT_NAMES.NEW_BRANCH, index)
|
||||||
}, [index])
|
window.message.success({
|
||||||
|
content: t('chat.message.new.branch.created'),
|
||||||
|
key: 'new-branch'
|
||||||
|
})
|
||||||
|
}, [index, t])
|
||||||
|
|
||||||
const onEdit = useCallback(async () => {
|
const onEdit = useCallback(async () => {
|
||||||
const editedText = await TextEditPopup.show({ text: message.content })
|
const editedText = await TextEditPopup.show({ text: message.content })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user