Skip to content

Commit

Permalink
Backport #34666 (#54612)
Browse files Browse the repository at this point in the history
* Backport #34666

* Fix type check
  • Loading branch information
Corey Robertson authored Jan 13, 2020
1 parent 3115ae6 commit 58f5a45
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

.canvasAssetManager__emptyPanel {
max-width: 400px;
margin: 0 auto;
margin: $euiSizeXL auto 0;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
EuiModalHeader,
EuiModalHeaderTitle,
EuiOverlayMask,
EuiPanel,
EuiProgress,
EuiSpacer,
EuiText,
Expand Down Expand Up @@ -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 (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/canvas/public/state/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 58f5a45

Please sign in to comment.