mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat: Change desktop UM experience (#5312)
* refactor: Hide prompt for desktop * feat: add email field to personalization modal * fix: update survey interfaces * chore: enable personalization survey email key display condition * feat: add users page upsell for desktop client * feat: disable UM on desktop where possible * refactor: Have a single function to decide whether UM is enabled * feat: update community nodes upsell link --------- Co-authored-by: Alex Grozav <alex@grozav.com> Co-authored-by: krynble <omar@n8n.io> Co-authored-by: freyamade <freya@n8n.io>
This commit is contained in:
@@ -92,6 +92,7 @@ import {
|
||||
NOT_SURE_YET_GOAL,
|
||||
AUTOMATION_GOAL_OTHER_KEY,
|
||||
COMPANY_TYPE_KEY,
|
||||
EMAIL_KEY,
|
||||
SAAS_COMPANY_TYPE,
|
||||
ECOMMERCE_COMPANY_TYPE,
|
||||
MSP_INDUSTRY,
|
||||
@@ -155,6 +156,16 @@ export default mixins(showMessage, workflowHelpers).extend({
|
||||
...mapStores(useRootStore, useSettingsStore, useUIStore, useUsersStore),
|
||||
survey() {
|
||||
const survey: IFormInputs = [
|
||||
{
|
||||
name: EMAIL_KEY,
|
||||
properties: {
|
||||
label: this.$locale.baseText('personalizationModal.yourEmailAddress'),
|
||||
type: 'text',
|
||||
placeholder: this.$locale.baseText('personalizationModal.email'),
|
||||
},
|
||||
shouldDisplay: () =>
|
||||
this.settingsStore.isDesktopDeployment && !this.usersStore.currentUser?.firstName,
|
||||
},
|
||||
{
|
||||
name: COMPANY_TYPE_KEY,
|
||||
properties: {
|
||||
|
||||
Reference in New Issue
Block a user