Rename SaveButton to SaveEmailButton
This component will be used for saving changes only in email content. It is a link variant button and will still be present next to Save/Send button. [MAILPOET-6342]
This commit is contained in:
committed by
Jan Lysý
parent
d5c8566dd0
commit
5b443027bf
@@ -24,7 +24,7 @@ import classnames from 'classnames';
|
|||||||
import { storeName } from '../../store';
|
import { storeName } from '../../store';
|
||||||
import { MoreMenu } from './more-menu';
|
import { MoreMenu } from './more-menu';
|
||||||
import { PreviewDropdown } from '../preview';
|
import { PreviewDropdown } from '../preview';
|
||||||
import { SaveButton } from './save-button';
|
import { SaveEmailButton } from './save-email-button';
|
||||||
import { CampaignName } from './campaign-name';
|
import { CampaignName } from './campaign-name';
|
||||||
import { SendButton } from './send-button';
|
import { SendButton } from './send-button';
|
||||||
import { useEditorMode } from '../../hooks';
|
import { useEditorMode } from '../../hooks';
|
||||||
@@ -208,7 +208,7 @@ export function Header() {
|
|||||||
</div>
|
</div>
|
||||||
) }
|
) }
|
||||||
<div className="editor-header__settings edit-post-header__settings">
|
<div className="editor-header__settings edit-post-header__settings">
|
||||||
<SaveButton />
|
<SaveEmailButton />
|
||||||
<PreviewDropdown />
|
<PreviewDropdown />
|
||||||
<SendButton />
|
<SendButton />
|
||||||
<PinnedItems.Slot scope={ storeName } />
|
<PinnedItems.Slot scope={ storeName } />
|
||||||
|
@@ -11,7 +11,7 @@ import { useDispatch, useSelect } from '@wordpress/data';
|
|||||||
import { check, cloud, Icon } from '@wordpress/icons';
|
import { check, cloud, Icon } from '@wordpress/icons';
|
||||||
import { storeName } from '../../store';
|
import { storeName } from '../../store';
|
||||||
|
|
||||||
export function SaveButton() {
|
export function SaveEmailButton() {
|
||||||
const { saveEditedEmail } = useDispatch( storeName );
|
const { saveEditedEmail } = useDispatch( storeName );
|
||||||
|
|
||||||
const { dirtyEntityRecords } = useEntitiesSavedStatesIsDirty();
|
const { dirtyEntityRecords } = useEntitiesSavedStatesIsDirty();
|
Reference in New Issue
Block a user