Skip to content

Commit

Permalink
add feature flag for branch selector
Browse files Browse the repository at this point in the history
  • Loading branch information
taylordolan authored and thejsj committed May 25, 2017
1 parent a9434d0 commit ba9fc7c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
9 changes: 4 additions & 5 deletions client/assets/styles/scss/views/views-new-service.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
max-width: 330px;
}

// for "name" form
+ .label {
margin-bottom: 0;
}

.btn-radio {
border-radius: $input-border-radius-lg;
flex: 1 1 50%;
Expand Down Expand Up @@ -49,6 +44,10 @@
}
}

.label-branch {
margin-top: -$sm;
}

// for branch selector
.btn-wrapped {
@extend %btn-md;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ section.grid-block.vertical.modal-body(
)

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

Expand Down
1 change: 1 addition & 0 deletions client/services/featureFlagService.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function featureFlags(
autoIsolationSetup: false,
backup: false,
cardStatus: false,
composeDefaultBranch: false,
composeEditing: false,
composeInstance: true,
composeNav: true,
Expand Down

0 comments on commit ba9fc7c

Please sign in to comment.