refactor: name to be set by user
This commit is contained in:
parent
f435d74d0a
commit
ddabd82f21
@ -1,7 +1,7 @@
|
||||
{
|
||||
"actions": [],
|
||||
"allow_rename": 1,
|
||||
"autoname": "autoincrement",
|
||||
"autoname": "prompt",
|
||||
"creation": "2025-09-26 18:51:41.145560",
|
||||
"doctype": "DocType",
|
||||
"engine": "InnoDB",
|
||||
@ -21,6 +21,7 @@
|
||||
"default": "Facebook",
|
||||
"fieldname": "type",
|
||||
"fieldtype": "Select",
|
||||
"in_list_view": 1,
|
||||
"label": "Type",
|
||||
"options": "Facebook"
|
||||
},
|
||||
@ -73,11 +74,11 @@
|
||||
"grid_page_length": 50,
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2025-09-30 19:31:57.730618",
|
||||
"modified": "2025-10-02 12:17:35.222102",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Lead Syncing",
|
||||
"name": "Lead Sync Source",
|
||||
"naming_rule": "Autoincrement",
|
||||
"naming_rule": "Set by user",
|
||||
"owner": "hussain@frappe.io",
|
||||
"permissions": [
|
||||
{
|
||||
@ -97,6 +98,5 @@
|
||||
"sort_field": "creation",
|
||||
"sort_order": "DESC",
|
||||
"states": [],
|
||||
"title_field": "type",
|
||||
"track_changes": 1
|
||||
}
|
||||
|
||||
@ -30,7 +30,6 @@ class LeadSyncSource(Document):
|
||||
facebook_lead_form: DF.Link | None
|
||||
facebook_page: DF.Link | None
|
||||
last_synced_at: DF.Datetime | None
|
||||
name: DF.Int | None
|
||||
type: DF.Literal["Facebook"]
|
||||
# end: auto-generated types
|
||||
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
<template>
|
||||
<!-- <pre>{{ JSON.stringify(sources, null, 2) }}</pre> -->
|
||||
|
||||
<div class="flex h-full flex-col gap-6 text-ink-gray-8">
|
||||
<!-- Header -->
|
||||
<div class="flex justify-between px-2 pt-2">
|
||||
@ -82,8 +80,9 @@
|
||||
/>
|
||||
</div>
|
||||
<div class="flex items-center py-2 px-4 text-sm text-ink-gray-5">
|
||||
<div class="w-4/6">{{ __('Source') }}</div>
|
||||
<div class="w-2/6">{{ __('Enabled') }}</div>
|
||||
<div class="w-4/6">{{ __('Name') }}</div>
|
||||
<div class="w-1/6">{{ __('Source') }}</div>
|
||||
<div class="w-1/6">{{ __('Enabled') }}</div>
|
||||
</div>
|
||||
<div class="h-px border-t mx-4 border-outline-gray-modals" />
|
||||
<ul class="overflow-y-auto px-2">
|
||||
@ -93,11 +92,18 @@
|
||||
@click="() => emit('updateStep', 'edit-source', { ...source })"
|
||||
>
|
||||
<div class="flex flex-col w-4/6 pr-5">
|
||||
<div class="text-p-base font-medium text-ink-gray-7 truncate">
|
||||
{{ source.name }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col w-1/6 pr-5">
|
||||
<div class="text-p-base font-medium text-ink-gray-7 truncate">
|
||||
{{ source.type }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center justify-between w-2/6">
|
||||
|
||||
<div class="flex items-center justify-between w-1/6">
|
||||
<Switch
|
||||
size="sm"
|
||||
v-model="source.enabled"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user