diff --git a/frontend/src/components/Icons/WebsiteIcon.vue b/frontend/src/components/Icons/WebsiteIcon.vue new file mode 100644 index 000000000..6b7f367cf --- /dev/null +++ b/frontend/src/components/Icons/WebsiteIcon.vue @@ -0,0 +1,16 @@ + diff --git a/frontend/src/pages/Organization.vue b/frontend/src/pages/Organization.vue index e7ee0c258..b6d161cac 100644 --- a/frontend/src/pages/Organization.vue +++ b/frontend/src/pages/Organization.vue @@ -1,90 +1,104 @@ @@ -112,14 +130,19 @@ import { ErrorMessage, Dropdown, call, + Tabs, } from 'frappe-ui' // import OrganizationModal from '@/components/OrganizationModal.vue' +import WebsiteIcon from '@/components/Icons/WebsiteIcon.vue' import EmailIcon from '@/components/Icons/EmailIcon.vue' import EditIcon from '@/components/Icons/EditIcon.vue' import PhoneIcon from '@/components/Icons/PhoneIcon.vue' import CameraIcon from '@/components/Icons/CameraIcon.vue' +import LeadsIcon from '@/components/Icons/LeadsIcon.vue' +import DealsIcon from '@/components/Icons/DealsIcon.vue' +import ContactsIcon from '@/components/Icons/ContactsIcon.vue' import { organizationsStore } from '@/stores/organizations.js' -import { ref } from 'vue' +import { h, ref } from 'vue' const props = defineProps({ organization: { @@ -170,4 +193,24 @@ async function deleteOrganization() { ], }) } + +function website(url) { + return url.replace(/^(?:https?:\/\/)?(?:www\.)?/i, '') +} + +const tabIndex = ref(0) +const tabs = [ + { + label: 'Leads', + icon: h(LeadsIcon, { class: 'h-4 w-4' }), + }, + { + label: 'Deals', + icon: h(DealsIcon, { class: 'h-4 w-4' }), + }, + { + label: 'Contacts', + icon: h(ContactsIcon, { class: 'h-4 w-4' }), + }, +] diff --git a/frontend/src/pages/Organizations.vue b/frontend/src/pages/Organizations.vue index fe856d377..e8fbb169d 100644 --- a/frontend/src/pages/Organizations.vue +++ b/frontend/src/pages/Organizations.vue @@ -10,6 +10,7 @@ @click="showOrganizationModal = true" > + Create organization