Skip to content

Commit ba9fc7c

Browse files
taylordolanthejsj
authored andcommitted
add feature flag for branch selector
1 parent a9434d0 commit ba9fc7c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

client/assets/styles/scss/views/views-new-service.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
max-width: 330px;
1515
}
1616

17-
// for "name" form
18-
+ .label {
19-
margin-bottom: 0;
20-
}
21-
2217
.btn-radio {
2318
border-radius: $input-border-radius-lg;
2419
flex: 1 1 50%;
@@ -49,6 +44,10 @@
4944
}
5045
}
5146

47+
.label-branch {
48+
margin-top: -$sm;
49+
}
50+
5251
// for branch selector
5352
.btn-wrapped {
5453
@extend %btn-md;

client/directives/components/newContainer/forms/configureNewServiceView.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ section.grid-block.vertical.modal-body(
5757
)
5858

5959
//- default branch selector
60-
form.grid-block.vertical.label(
61-
ng-if = "NCC.state.dockerFileTab === 'compose'"
60+
form.grid-block.vertical.label.label-branch(
61+
ng-if = "NCC.state.dockerFileTab === 'compose' && $root.featureFlags.composeDefaultBranch"
6262
ng-include = "'defaultBranchView'"
6363
)
6464

client/services/featureFlagService.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function featureFlags(
1414
autoIsolationSetup: false,
1515
backup: false,
1616
cardStatus: false,
17+
composeDefaultBranch: false,
1718
composeEditing: false,
1819
composeInstance: true,
1920
composeNav: true,

0 commit comments

Comments
 (0)