File tree 5 files changed +20
-12
lines changed
5 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ package object FeatureToggleModel extends Logging {
55
55
private val FEATURE_TOGGLE_RULE_DEPLOYMENT_CUSTOM_SCRIPT_SMUI2SOLR_SH_PATH = " toggle.rule-deployment.custom-script-SMUI2SOLR-SH_PATH"
56
56
private val FEATURE_TOGGLE_HEADLINE = " toggle.headline"
57
57
private val FEATURE_TOGGLE_DEPLOYMENT_LABEL = " toggle.rule-deployment-label"
58
- private val FEATURE_TOGGLE_DEPLOYMENT_PRELIVE_LABEL = " toggle.rule-deployment- prelive-label"
58
+ private val FEATURE_TOGGLE_DEPLOYMENT_PRELIVE_LABEL = " toggle.deploy- prelive-fn -label"
59
59
private val ACTIVATE_RULE_TAGGING = " toggle.rule-tagging"
60
60
private val PREDEFINED_TAGS_FILE = " toggle.predefined-tags-file"
61
61
private val SMUI_VERSION = " smui.version"
Original file line number Diff line number Diff line change 1
1
import com .typesafe .sbt .GitBranchPrompt
2
2
3
3
name := " search-management-ui"
4
- version := " 4.0.9 "
4
+ version := " 4.0.10 "
5
5
maintainer := " Contact productful.io <hello@productful.io>"
6
6
7
7
scalaVersion := " 2.12.17"
Original file line number Diff line number Diff line change 82
82
< ng-container *ngFor ="let singleDeploymentInfo of deploymentLogInfo; index as idxDeploy ">
83
83
< span class ="depl-info-row-instance ">
84
84
< b > {{ (singleDeploymentInfo.targetSystem == 'PRELIVE' ?
85
- featureToggleService.getSync('toggle.rule-deployment-prelive-label ') :
86
- featureToggleService.getSync('toggle.rule-deployment-label '))}}</ b > deployment:</ span >
85
+ featureToggleService.getSyncToggleDeploymentLabel('PRELIVE ') :
86
+ featureToggleService.getSyncToggleDeploymentLabel('LIVE '))}}</ b > deployment:</ span >
87
87
< span class ="depl-info-row-datetime "> < b > {{ singleDeploymentInfo.formattedDateTime }}</ b > </ span >
88
88
< span class ="depl-info-row-result ">
89
89
< b
164
164
</ div >
165
165
</ app-smui-modal >
166
166
167
- < app-smui-modal id ="confirm-publish-live " title ="Confirm publish to {{ featureToggleService.getSync('toggle.rule-deployment-label ') }} ">
167
+ < app-smui-modal id ="confirm-publish-live " title ="Confirm publish to {{ featureToggleService.getSyncToggleDeploymentLabel('LIVE ') }} ">
168
168
< div content >
169
- < p > Are you sure to publish current Search Rules to {{ featureToggleService.getSync('toggle.rule-deployment-label ') }}?</ p >
169
+ < p > Are you sure to publish current Search Rules to {{ featureToggleService.getSyncToggleDeploymentLabel('LIVE ') }}?</ p >
170
170
</ div >
171
171
< div footer class ="btn-toolbar ">
172
172
< button
175
175
(click) ="requestPublishRulesTxtToSolr('LIVE') "
176
176
>
177
177
< i class ="fa fa-thumbs-up smui-icon "> </ i >
178
- Yes, publish to {{ featureToggleService.getSync('toggle.rule-deployment-label ') }}
178
+ Yes, publish to {{ featureToggleService.getSyncToggleDeploymentLabel('LIVE ') }}
179
179
</ button >
180
180
< button
181
181
class ="btn btn-danger "
Original file line number Diff line number Diff line change @@ -103,14 +103,14 @@ export class HeaderNavComponent implements OnInit {
103
103
104
104
public publishToPreliveButtonText ( ) : string {
105
105
return this . deploymentRunningForStage === 'PRELIVE'
106
- ? 'Publishing to ' + this . featureToggleService . getSync ( 'toggle.rule-deployment-prelive-label ') + '...'
107
- : 'Publish to ' + this . featureToggleService . getSync ( 'toggle.rule-deployment-prelive-label ') + '' ;
106
+ ? 'Publishing to ' + this . featureToggleService . getSyncToggleDeploymentLabel ( 'PRELIVE ') + '...'
107
+ : 'Publish to ' + this . featureToggleService . getSyncToggleDeploymentLabel ( 'PRELIVE ') + '' ;
108
108
}
109
109
110
110
public publishToLiveButtonText ( ) : string {
111
111
return this . deploymentRunningForStage === 'LIVE'
112
- ? 'Publishing to ' + this . featureToggleService . getSync ( 'toggle.rule-deployment-label ') + '...'
113
- : 'Publish to ' + this . featureToggleService . getSync ( 'toggle.rule-deployment-label ') + '' ;
112
+ ? 'Publishing to ' + this . featureToggleService . getSyncToggleDeploymentLabel ( 'LIVE ') + '...'
113
+ : 'Publish to ' + this . featureToggleService . getSyncToggleDeploymentLabel ( 'LIVE ') + '' ;
114
114
}
115
115
116
116
public publishSolrConfig ( ) {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const FEATURE_ACTIVATE_SPELLING = 'toggle.activate-spelling';
10
10
const FEATURE_ACTIVATE_EVENTHISTORY = 'toggle.activate-eventhistory' ;
11
11
const FEATURE_CUSTOM_UP_DOWN_MAPPINGS = 'toggle.ui-concept.custom.up-down-dropdown-mappings' ;
12
12
const FEATURE_TOGGLE_DEPLOYMENT_LABEL = "toggle.rule-deployment-label" ;
13
- const FEATURE_TOGGLE_DEPLOYMENT_PRELIVE_LABEL = "toggle.rule-deployment- prelive-label" ;
13
+ const FEATURE_TOGGLE_DEPLOYMENT_PRELIVE_LABEL = "toggle.deploy- prelive-fn -label" ;
14
14
15
15
16
16
@Injectable ( {
@@ -90,4 +90,12 @@ export class FeatureToggleService {
90
90
}
91
91
}
92
92
93
+ getSyncToggleDeploymentLabel ( stage : string ) : any {
94
+ const s =
95
+ ( stage == 'PRELIVE' ) ?
96
+ FEATURE_TOGGLE_DEPLOYMENT_PRELIVE_LABEL :
97
+ FEATURE_TOGGLE_DEPLOYMENT_LABEL ;
98
+ return this . getSync ( s ) ;
99
+ }
100
+
93
101
}
You can’t perform that action at this time.
0 commit comments