diff --git a/models/lead/src/index.ts b/models/lead/src/index.ts index c1a87d4161..77e4f4a94e 100644 --- a/models/lead/src/index.ts +++ b/models/lead/src/index.ts @@ -215,6 +215,10 @@ export function createModel (builder: Builder): void { mode: ['workbench', 'browser', 'editor', 'panel', 'popup'] } }) + + builder.mixin(lead.mixin.Customer, core.class.Mixin, view.mixin.ObjectFactory, { + component: lead.component.CreateCustomer + }) } export { leadOperation } from './migration' diff --git a/packages/text-editor/src/components/StyledTextEditor.svelte b/packages/text-editor/src/components/StyledTextEditor.svelte index 0a265e8419..0866c1801f 100644 --- a/packages/text-editor/src/components/StyledTextEditor.svelte +++ b/packages/text-editor/src/components/StyledTextEditor.svelte @@ -60,14 +60,16 @@ -
-
-
-
-
- + {#if showButtons} +
+
+
+
+
+ +
-
+ {/if}
diff --git a/plugins/lead-resources/src/components/Customers.svelte b/plugins/lead-resources/src/components/Customers.svelte index 47a1b85e49..b6a88f1a92 100644 --- a/plugins/lead-resources/src/components/Customers.svelte +++ b/plugins/lead-resources/src/components/Customers.svelte @@ -16,10 +16,11 @@
@@ -47,6 +52,13 @@ updateResultQuery(search) }} /> + +
diff --git a/plugins/lead-resources/src/index.ts b/plugins/lead-resources/src/index.ts index b08123a800..6e1515196f 100644 --- a/plugins/lead-resources/src/index.ts +++ b/plugins/lead-resources/src/index.ts @@ -24,6 +24,7 @@ import LeadPresenter from './components/LeadPresenter.svelte' import Leads from './components/Leads.svelte' import LeadsPresenter from './components/LeadsPresenter.svelte' import TemplatesIcon from './components/TemplatesIcon.svelte' +import CreateCustomer from './components/CreateCustomer.svelte' export default async (): Promise => ({ component: { @@ -35,6 +36,7 @@ export default async (): Promise => ({ TemplatesIcon, Customers, LeadsPresenter, - Leads + Leads, + CreateCustomer } }) diff --git a/plugins/lead-resources/src/plugin.ts b/plugins/lead-resources/src/plugin.ts index 5b479d0a59..154907dc5d 100644 --- a/plugins/lead-resources/src/plugin.ts +++ b/plugins/lead-resources/src/plugin.ts @@ -33,7 +33,10 @@ export default mergeIds(leadId, lead, { Customers: '' as IntlString, Leads: '' as IntlString, NoLeadsForDocument: '' as IntlString, - LeadPlaceholder: '' as IntlString + LeadPlaceholder: '' as IntlString, + CreateCustomer: '' as IntlString, + IssueDescriptionPlaceholder: '' as IntlString, + CreateCustomerLabel: '' as IntlString }, component: { CreateCustomer: '' as AnyComponent, diff --git a/plugins/view-resources/src/components/StringEditor.svelte b/plugins/view-resources/src/components/StringEditor.svelte index 9dbf8c41f2..fbe883dfa7 100644 --- a/plugins/view-resources/src/components/StringEditor.svelte +++ b/plugins/view-resources/src/components/StringEditor.svelte @@ -21,7 +21,7 @@ export let placeholder: IntlString export let value: any export let focus: boolean - export let maxWidth: string + export let maxWidth: string = '10rem' export let onChange: (value: string) => void function _onchange (ev: Event) {