Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import { applyTemplateStrings } from '../../i18n/templates';

import darkTemplate from './theme_dark.json';
import lightTemplate from './theme_light.json';
import pitchTemplate from './pitch_presentation.json';
// import pitchTemplate from './pitch_presentation.json';
import statusTemplate from './status_report.json';
import summaryTemplate from './summary_report.json';

// Registry expects a function that returns a spec object
export const templateSpecs = applyTemplateStrings([
darkTemplate,
lightTemplate,
pitchTemplate,
// pitchTemplate,
statusTemplate,
summaryTemplate,
]);
19 changes: 11 additions & 8 deletions x-pack/legacy/plugins/canvas/i18n/templates/template_strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ export const getTemplateStrings = (): TemplateStringDict => ({
defaultMessage: 'Light color themed presentation deck',
}),
},
Pitch: {
name: i18n.translate('xpack.canvas.templates.pitchName', {
defaultMessage: 'Pitch',
}),
help: i18n.translate('xpack.canvas.templates.pitchHelp', {
defaultMessage: 'Branded presentation with large photos',
}),
},
Status: {
name: i18n.translate('xpack.canvas.templates.statusName', {
defaultMessage: 'Status',
Expand All @@ -62,3 +54,14 @@ export const getTemplateStrings = (): TemplateStringDict => ({
}),
},
});

export const getUnusedTemplateStrings = (): TemplateStringDict => ({
Pitch: {
name: i18n.translate('xpack.canvas.templates.pitchName', {
defaultMessage: 'Pitch',
}),
help: i18n.translate('xpack.canvas.templates.pitchHelp', {
defaultMessage: 'Branded presentation with large photos',
}),
},
});