Skip to content

Commit 35a6cef

Browse files
author
Corey Robertson
committed
Removes Pitch Presentation Template from Canvas (#62688)
* Removes Pitch Presentation Template from Canvas * Fix test * Keep translation to not fail i18n
1 parent 47179c6 commit 35a6cef

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

x-pack/legacy/plugins/canvas/canvas_plugin_src/templates/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import { applyTemplateStrings } from '../../i18n/templates';
77

88
import darkTemplate from './theme_dark.json';
99
import lightTemplate from './theme_light.json';
10-
import pitchTemplate from './pitch_presentation.json';
10+
// import pitchTemplate from './pitch_presentation.json';
1111
import statusTemplate from './status_report.json';
1212
import summaryTemplate from './summary_report.json';
1313

1414
// Registry expects a function that returns a spec object
1515
export const templateSpecs = applyTemplateStrings([
1616
darkTemplate,
1717
lightTemplate,
18-
pitchTemplate,
18+
// pitchTemplate,
1919
statusTemplate,
2020
summaryTemplate,
2121
]);

x-pack/legacy/plugins/canvas/i18n/templates/template_strings.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ export const getTemplateStrings = (): TemplateStringDict => ({
3737
defaultMessage: 'Light color themed presentation deck',
3838
}),
3939
},
40-
Pitch: {
41-
name: i18n.translate('xpack.canvas.templates.pitchName', {
42-
defaultMessage: 'Pitch',
43-
}),
44-
help: i18n.translate('xpack.canvas.templates.pitchHelp', {
45-
defaultMessage: 'Branded presentation with large photos',
46-
}),
47-
},
4840
Status: {
4941
name: i18n.translate('xpack.canvas.templates.statusName', {
5042
defaultMessage: 'Status',
@@ -62,3 +54,14 @@ export const getTemplateStrings = (): TemplateStringDict => ({
6254
}),
6355
},
6456
});
57+
58+
export const getUnusedTemplateStrings = (): TemplateStringDict => ({
59+
Pitch: {
60+
name: i18n.translate('xpack.canvas.templates.pitchName', {
61+
defaultMessage: 'Pitch',
62+
}),
63+
help: i18n.translate('xpack.canvas.templates.pitchHelp', {
64+
defaultMessage: 'Branded presentation with large photos',
65+
}),
66+
},
67+
});

0 commit comments

Comments
 (0)