Allow already installed marketing extensions to be activated (https://github.com/woocommerce/woocommerce-admin/pull/7740)
* Allow already installed marketing extensions to be activated * Add installAndActivate to old task list * Add changelog entry
This commit is contained in:
parent
1d00a09ec3
commit
5b553ff2ea
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: Fix
|
||||||
|
|
||||||
|
Allow already installed marketing extensions to be activated #7740
|
|
@ -12,7 +12,7 @@ import './PluginList.scss';
|
||||||
export type PluginListProps = {
|
export type PluginListProps = {
|
||||||
currentPlugin?: string | null;
|
currentPlugin?: string | null;
|
||||||
key?: string;
|
key?: string;
|
||||||
installAndActivate?: ( slug: string ) => void;
|
installAndActivate: ( slug: string ) => void;
|
||||||
plugins?: PluginProps[];
|
plugins?: PluginProps[];
|
||||||
title?: string;
|
title?: string;
|
||||||
};
|
};
|
||||||
|
|
|
@ -190,6 +190,7 @@ export const Marketing: React.FC< MarketingProps > = ( {
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<PluginList
|
<PluginList
|
||||||
currentPlugin={ currentPlugin }
|
currentPlugin={ currentPlugin }
|
||||||
|
installAndActivate={ installAndActivate }
|
||||||
plugins={ installedExtensions }
|
plugins={ installedExtensions }
|
||||||
/>
|
/>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
|
@ -12,7 +12,7 @@ import './PluginList.scss';
|
||||||
export type PluginListProps = {
|
export type PluginListProps = {
|
||||||
currentPlugin?: string | null;
|
currentPlugin?: string | null;
|
||||||
key?: string;
|
key?: string;
|
||||||
installAndActivate?: ( slug: string ) => void;
|
installAndActivate: ( slug: string ) => void;
|
||||||
plugins?: PluginProps[];
|
plugins?: PluginProps[];
|
||||||
title?: string;
|
title?: string;
|
||||||
};
|
};
|
||||||
|
|
|
@ -208,6 +208,7 @@ const Marketing: React.FC< MarketingProps > = ( { onComplete } ) => {
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<PluginList
|
<PluginList
|
||||||
currentPlugin={ currentPlugin }
|
currentPlugin={ currentPlugin }
|
||||||
|
installAndActivate={ installAndActivate }
|
||||||
plugins={ installedExtensions }
|
plugins={ installedExtensions }
|
||||||
/>
|
/>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
Loading…
Reference in New Issue