feat(sales): enhance opportunity management and add CW integration
This commit is contained in:
@@ -60,7 +60,8 @@
|
||||
|
||||
// Hide Quotes tab if user lacks fetch permission
|
||||
$: visibleTabs = tabs.filter(
|
||||
(t) => t !== "Quotes" || permissions["sales.opportunity.quote.fetch"] !== false
|
||||
(t) =>
|
||||
t !== "Quotes" || permissions["sales.opportunity.quote.fetch"] !== false,
|
||||
);
|
||||
|
||||
// Track whether ProductsTab is in edit mode
|
||||
@@ -129,7 +130,14 @@
|
||||
|
||||
<div class="opportunity-detail-page">
|
||||
<!-- Left pane — Opportunity overview -->
|
||||
<OpportunitySidebar {opportunity} {isMobile} {mobileActiveTab} />
|
||||
<OpportunitySidebar
|
||||
{opportunity}
|
||||
{isMobile}
|
||||
{mobileActiveTab}
|
||||
{permissions}
|
||||
accessToken={data.accessToken}
|
||||
on:updated={() => invalidateAll()}
|
||||
/>
|
||||
|
||||
<!-- Mobile vertical nav menu -->
|
||||
{#if isMobile && mobileActiveTab === null}
|
||||
@@ -319,6 +327,7 @@
|
||||
{opportunityId}
|
||||
productSequence={localProductSequence}
|
||||
initialProductId={pendingProductId}
|
||||
{permissions}
|
||||
bind:isEditing={productsEditing}
|
||||
on:sequenceSaved={handleSequenceSaved}
|
||||
on:productsChanged={handleProductsChanged}
|
||||
|
||||
Reference in New Issue
Block a user