[Enhancement] Add CopyToClipboard action in code component (#329)
* Add CopyToClipboard action in websiteWidgetCode component * Fix codeclimate issues
This commit is contained in:
@@ -71,7 +71,10 @@ const actions = {
|
||||
try {
|
||||
const response = await WebChannel.create(params);
|
||||
commit(types.default.SET_INBOX_ITEM, response);
|
||||
bus.$emit('new_website_channel', { inboxId: response.data.id });
|
||||
bus.$emit('new_website_channel', {
|
||||
inboxId: response.data.id,
|
||||
websiteToken: response.data.website_token,
|
||||
});
|
||||
} catch (error) {
|
||||
// Handle error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user