Event Lookup | const eventLookup = {
'save-click': 'save_click',
'save-success': 'save_success',
'unsave': 'save_unsave',
'find-more': ('button', {ctaText: data.ctaText}),
'sign-up': 'save_modal_signup',
'sign-in': 'save_modal_signin',
'modal-close': 'save_modal_close',
'save-cap-modal-view': 'save_cap_modal_view',
'save-cap-modal-join': 'save_cap_modal_join',
'save-cap-modal-close': 'save_cap_modal_close',
'tooltip-view': 'contentsaved_tooltip_view',
'tooltip-link-click': 'contentsaved_tooltip_clicktomystuff',
'exclusives-subscription-modal-view': 'save_exclusives_subscription_modal_view',
'exclusives-subscription-modal-join': 'save_exclusives_subscription_modal_join',
'exclusives-subscription-modal-close': 'save_exclusives_subscription_modal_close',
'edit-bookmarks-mystuff-confirm': 'bookmark_edit_bookmarks_mystuff_confirm',
'edit-bookmarks-myStuff-click': 'bookmark_edit_bookmarks_mystuff_open',
'create-folder-save-modal-content-open': 'bookmark_create_folder_bookmarkmodal_open',
'create-folder-save-modal-content-confirm': 'bookmark_create_folder_bookmarkmodal_confirm',
'create-folder-menu-panel-confirm': 'bookmark_create_folder_mystuff_confirm',
'create-folder-menu-panel-open': 'bookmark_create_folder_mystuff_open',
'edit-bookmarks-article-confirm': 'bookmark_edit_bookmarks_article_confirm',
'edit-bookmarks-article-open': 'bookmark_edit_bookmarks_article_open',
'create-folder-article-open': 'bookmark_create_folder_article_open',
'create-folder-article-confirm': 'bookmark_create_folder_article_confirm',
};
const result = eventLookup[event];
if (result) {
name = result;
} else {
return false;
}
| ready |