Skip to content

Commit

Permalink
add some missing items to template actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Apr 10, 2024
1 parent 0ace553 commit 08e0e47
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* WordPress dependencies
*/
import { trash, backup } from '@wordpress/icons';
import { __, sprintf, _n } from '@wordpress/i18n';
import { useDispatch } from '@wordpress/data';
import { useState } from '@wordpress/element';
Expand Down Expand Up @@ -29,6 +30,7 @@ export const resetTemplateAction = {
label: __( 'Reset' ),
isEligible: isTemplateRevertable,
supportsBulk: true,
icon: backup,
hideModalHeader: true,
RenderModal: ( { items, closeModal, onPerform } ) => {
const { revertTemplate } = useDispatch( editSiteStore );
Expand Down Expand Up @@ -125,6 +127,7 @@ export const deleteTemplateAction = {
isEligible: isTemplateRemovable,
supportsBulk: true,
hideModalHeader: true,
icon: trash,
RenderModal: ( { items: templates, closeModal, onPerform } ) => {
const { removeTemplates } = unlock( useDispatch( editSiteStore ) );
return (
Expand Down

0 comments on commit 08e0e47

Please sign in to comment.