* Backport #34666

* Fix type check
This commit is contained in:
Corey Robertson 2020-01-13 15:06:19 -05:00 committed by GitHub
parent 3115ae650b
commit 58f5a45859
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 6 deletions

View file

@ -34,7 +34,7 @@
.canvasAssetManager__emptyPanel {
max-width: 400px;
margin: 0 auto;
margin: $euiSizeXL auto 0;
}
}

View file

@ -17,7 +17,6 @@ import {
EuiModalHeader,
EuiModalHeaderTitle,
EuiOverlayMask,
EuiPanel,
EuiProgress,
EuiSpacer,
EuiText,
@ -70,13 +69,13 @@ export const AssetModal: FunctionComponent<Props> = props => {
const percentageUsed = Math.round((assetsTotal / ASSET_MAX_SIZE) * 100);
const emptyAssets = (
<EuiPanel className="canvasAssetManager__emptyPanel">
<div className="canvasAssetManager__emptyPanel">
<EuiEmptyPrompt
iconType="importAction"
title={<h2>{strings.getEmptyAssetsDescription()}</h2>}
titleSize="xs"
/>
</EuiPanel>
</div>
);
return (

View file

@ -23,7 +23,7 @@ export const WorkpadTemplates = compose(
// Clone workpad given an id
cloneWorkpad: props => workpad => {
workpad.id = getId('workpad');
workpad.name = `Untitled Workpad - ${workpad.name}`;
workpad.name = `My Canvas Workpad - ${workpad.name}`;
workpad.tags = undefined;
return workpadService
.create(workpad)

View file

@ -42,7 +42,7 @@ export const getDefaultPage = () => {
export const getDefaultWorkpad = () => {
const page = getDefaultPage();
return {
name: 'Untitled Workpad',
name: 'My Canvas Workpad',
id: getId('workpad'),
width: 1080,
height: 720,