From cc68c9c468520b14e65eef8b6f5b6261ef5bae72 Mon Sep 17 00:00:00 2001 From: Justin Reynolds Date: Mon, 29 Oct 2018 13:22:16 -0700 Subject: [PATCH] feat(core): Support a date constraint on trigger parameters (#5907) --- .../manualPipelineExecution.controller.js | 13 ++++++++++++ .../manualPipelineExecution.html | 20 ++++++++++++++++++- .../manualPipelineExecution.less | 4 ++++ 3 files changed, 36 insertions(+), 1 deletion(-) diff --git a/app/scripts/modules/core/src/pipeline/manualExecution/manualPipelineExecution.controller.js b/app/scripts/modules/core/src/pipeline/manualExecution/manualPipelineExecution.controller.js index 882e12cfcb7..6a4b0637534 100644 --- a/app/scripts/modules/core/src/pipeline/manualExecution/manualPipelineExecution.controller.js +++ b/app/scripts/modules/core/src/pipeline/manualExecution/manualPipelineExecution.controller.js @@ -259,6 +259,19 @@ module.exports = angular return this.command.pipeline.stages.filter(stage => stage.type === stageType); }; + this.dateOptions = { + dateDisabled: false, + showWeeks: false, + minDate: new Date(), + startingDay: 1, + }; + + this.dateOpened = {}; + + this.openDate = parameterName => { + this.dateOpened[parameterName] = true; + }; + /** * Initialization */ diff --git a/app/scripts/modules/core/src/pipeline/manualExecution/manualPipelineExecution.html b/app/scripts/modules/core/src/pipeline/manualExecution/manualPipelineExecution.html index c0d3fa09fa0..c8b5f342870 100644 --- a/app/scripts/modules/core/src/pipeline/manualExecution/manualPipelineExecution.html +++ b/app/scripts/modules/core/src/pipeline/manualExecution/manualPipelineExecution.html @@ -80,7 +80,25 @@

Select Pipeline

* -
+
+

+ + + + +

+
+