-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Site Editor]: Fix multiple templates creation while in the process o…
…f creating one (#44146) * [Site Editor]: Fix multiple templates creation while in the process of creating one * add overlay with spinners * try fullscreen overlay * make modal full height
- Loading branch information
1 parent
61e41f0
commit ce37fe9
Showing
5 changed files
with
138 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/edit-site/src/components/add-new-template/template-actions-loading-screen.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
import { Spinner, Modal } from '@wordpress/components'; | ||
|
||
export default function TemplateActionsLoadingScreen() { | ||
const baseCssClass = 'edit-site-template-actions-loading-screen-modal'; | ||
return ( | ||
<Modal | ||
isFullScreen | ||
isDismissible={ false } | ||
shouldCloseOnClickOutside={ false } | ||
shouldCloseOnEsc={ false } | ||
onRequestClose={ () => {} } | ||
__experimentalHideHeader | ||
className={ baseCssClass } | ||
> | ||
<div className={ `${ baseCssClass }__content` }> | ||
<Spinner /> | ||
</div> | ||
</Modal> | ||
); | ||
} |