File Editor
Directories:
.. (Back)
api
constants
feedback
gutenberg
iframe
lib
utils
Files:
app.js
menu.js
navigation.js
Create New File
Create
Edit File: menu.js
import $ from 'jquery'; import { hubspotBaseUrl, portalId, i18n } from './constants/leadinConfig'; function addMenuItem(text, href) { const link = $(`<li><a href="${href}" target="_blank">${text}</a></li>`); const lastLink = $('#toplevel_page_leadin') .find('li') .last() .prev(); $(lastLink).before(link); } export function addExternalLinks() { const chatflowsUrl = `${hubspotBaseUrl}/chatflows/${portalId}`; const emailUrl = `${hubspotBaseUrl}/email/${portalId}`; addMenuItem(i18n.chatflows, chatflowsUrl); addMenuItem(i18n.email, emailUrl); }
Save Changes
Rename File
Rename