Show "Save draft" instead of "Saved" on initial product page (#38609)
This commit is contained in:
parent
8098c35588
commit
e09e8b8ab0
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: fix
|
||||
|
||||
Show "Save draft" instead of "Saved" on initial product page
|
|
@ -103,7 +103,7 @@ export function useSaveDraft( {
|
|||
let children: ReactNode;
|
||||
if ( productStatus === 'publish' ) {
|
||||
children = __( 'Switch to draft', 'woocommerce' );
|
||||
} else if ( hasEdits ) {
|
||||
} else if ( hasEdits || productStatus === 'auto-draft' ) {
|
||||
children = __( 'Save draft', 'woocommerce' );
|
||||
} else {
|
||||
children = (
|
||||
|
|
Loading…
Reference in New Issue