Make it possible to define control buttons text (Back, Create, Review) per template
Signed-off-by: Bogdan Nechyporenko <bnechyporenko@bol.com>
This commit is contained in:
@@ -44,6 +44,15 @@ export interface TaskStep {
|
||||
name: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface TemplateConfigurationsV1beta3 extends JsonObject {
|
||||
buttonLabels?: {
|
||||
backButtonText?: string;
|
||||
createButtonText?: string;
|
||||
reviewButtonText?: string;
|
||||
};
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface TemplateEntityStepV1beta3 extends JsonObject {
|
||||
// (undocumented)
|
||||
@@ -66,6 +75,7 @@ export interface TemplateEntityV1beta3 extends Entity {
|
||||
kind: 'Template';
|
||||
spec: {
|
||||
type: string;
|
||||
configurations?: TemplateConfigurationsV1beta3;
|
||||
parameters?: TemplateParametersV1beta3 | TemplateParametersV1beta3[];
|
||||
steps: Array<TemplateEntityStepV1beta3>;
|
||||
output?: {
|
||||
|
||||
@@ -46,6 +46,9 @@ export interface TemplateEntityV1beta3 extends Entity {
|
||||
*/
|
||||
type: string;
|
||||
|
||||
/**
|
||||
* Template specific configurations.
|
||||
*/
|
||||
configurations?: TemplateConfigurationsV1beta3;
|
||||
|
||||
/**
|
||||
@@ -70,10 +73,27 @@ export interface TemplateEntityV1beta3 extends Entity {
|
||||
};
|
||||
}
|
||||
|
||||
export interface TemplateConfigurationsV1beta3 {
|
||||
/**
|
||||
* The configuration of the template.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export interface TemplateConfigurationsV1beta3 extends JsonObject {
|
||||
/**
|
||||
* Overrides default buttons' text
|
||||
*/
|
||||
buttonLabels?: {
|
||||
/**
|
||||
* The text for the button which leads to the previous template page
|
||||
*/
|
||||
backButtonText?: string;
|
||||
/**
|
||||
* The text for the button which starts the execution of the template
|
||||
*/
|
||||
createButtonText?: string;
|
||||
/**
|
||||
* The text for the button which opens template's review/summary
|
||||
*/
|
||||
reviewButtonText?: string;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user