Skip to content

Commit b994035

Browse files
authored
Merge pull request #2056 from CodeNow/remove-org-demos
Remove org demos
2 parents 76922c6 + 083b573 commit b994035

File tree

17 files changed

+34
-32
lines changed

17 files changed

+34
-32
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//- ************************
2+
//- deprecated file, delete with $root.featureFlags.demoPersonalOnly
3+
.service-cta .demo-progress {
4+
width: calc(100% + 30px);
5+
}
6+
7+
.popover-demo.service-cta {
8+
margin-bottom: 9px;
9+
margin-top: 5px;
10+
}
11+
//- end deprecated file
12+
//- ************************

client/assets/styles/scss/popover/popover-demo-progress.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
}
1919

2020
.branch-step &,
21-
.service-cta &,
2221
.team-cta & {
2322
width: calc(100% + 30px);
2423
}

client/assets/styles/scss/popover/popover-demo.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
top: 0;
77
z-index: $z-views-sidebar;
88

9-
// specific to the service cta
10-
&.service-cta {
11-
margin-bottom: 9px;
12-
margin-top: 5px;
13-
}
14-
159
// specific to the branch step
1610
&.branch-step {
1711
margin-top: 6px;

client/config/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ module.exports = [
287287
featureFlags,
288288
populateCurrentOrgService // unused, but required so things are properly populated!
289289
) {
290-
if (featureFlags.flags.demoOrg && demoFlowService.isInDemoFlow()) {
290+
if (demoFlowService.isInDemoFlow()) {
291291
return $state.go('base.instances', {
292292
userName: $stateParams.userName
293293
});

client/directives/components/instanceNavigtion/instanceNavigationInternalsView.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ a.grid-block.align-center.a-sref(
1919
| {{getNavigationName()}}
2020
button.grid-block.shrink.btn-gear(
2121
ng-class = "{'active': INC.popoverShown}"
22-
ng-if = "!INC.currentOrg.isPersonalAccount() && (!$root.featureFlags.demoOrg || $root.featureFlags.demoOrg && !INC.isInDemoFlow())"
22+
ng-if = "!INC.currentOrg.isPersonalAccount() && !INC.isInDemoFlow()"
2323
pop-over
2424
pop-over-active = "INC.popoverShown"
2525
pop-over-controller = "INC"

client/directives/components/newContainer/newContainerTooltipView.jade

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
.arrow(
2-
ng-class = "{'gray': (!$root.featureFlags.demoOrg && !NCC.isPersonalAccount()) || ($root.featureFlags.demoOrg && !NCC.isInDemoFlow())}"
2+
ng-class = "{'gray': !NCC.isPersonalAccount() || !NCC.isInDemoFlow()}"
33
style = "top: 39px;"
44
)
55

66
div(
7-
ng-if = "!NCC.showAddServicesPopover()"
7+
ng-if = "!NCC.showAddServicesPopover() && !$root.featureFlags.demoPersonalOnly"
88
ng-include = "'templateMenuEmptyPopoverView'"
99
)
1010

1111
div(
12-
ng-if = "NCC.showAddServicesPopover()"
12+
ng-if = "NCC.showAddServicesPopover() || $root.featureFlags.demoPersonalOnly"
1313
)
1414
.grid-block.popover-header
1515
button.grid-block.align-center.btn.btn-radio(

client/directives/components/notifications/viewNotifications.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
.grid-block.vertical.noscroll(
1212
hang-tight
1313
instance = "dataInstance.data.instance"
14-
ng-if = "CI.showHangTightMessage()"
14+
ng-if = "CI.showHangTightMessage() && !$root.featureFlags.demoPersonalOnly"
1515
)

client/directives/environment/environmentView.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
)
4747
.popover.popover-environment.in(
4848
configure-intro
49-
ng-if = "$root.featureFlags.demoOrg && EC.shouldShowExplanationUi()"
49+
ng-if = "EC.shouldShowExplanationUi()"
5050
)
5151

5252
header.grid-block.align-center.environment-header(

client/directives/instances/instance/branchMenuPopover/templateMenuEmptyPopoverView.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
) Switch to a Team
1212

1313
.grid-block.align-center.vertical.padding-md.empty(
14-
ng-if = "!NCC.isPersonalAccount()"
14+
ng-if = "!NCC.isPersonalAccount() && !$root.featureFlags.demoPersonalOnly"
1515
)
1616
img.grid-block.shrink.img(
1717
src = "/build/images/add-code-state.svg"

client/directives/instances/instance/instanceHeaderView.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
)
7474

7575
.popover.bottom.in.popover-url.below-modals(
76-
ng-if = "showUrlCallout()"
76+
ng-if = "showUrlCallout() && !$root.featureFlags.demoPersonalOnly"
7777
ng-include = "'containerUrlPopoverView'"
7878
)
7979

0 commit comments

Comments
 (0)