Skip to content

Commit c1ed103

Browse files
committed
Fixing typos
1 parent 2e85c37 commit c1ed103

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

client/directives/components/serverModalButtons/serverModalButtonsDirective.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function serverModalButtonsDirective(
1919
link: function ($scope) {
2020
$scope.showSaveAndBuild = function () {
2121
return (
22-
(!$scope.SMC.instance && $scope.SMC.isMirroingDockerfile) ||
22+
(!$scope.SMC.instance && $scope.SMC.isMirroringDockerfile) ||
2323
(!$scope.SMC.instance && $scope.SMC.state.step < 4) ||
2424
($scope.SMC.isDirty() === 'build' && !$rootScope.isLoading[$scope.SMC.name])
2525
);

client/directives/environment/modals/forms/formBuildfiles/viewFormBuildfiles.jade

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
)
1515

1616
.grid-block.shrink.align-center.well.gray.in.row-xxs(
17-
ng-if = "(!SMC.state.advanced && !SMC.state.isMirroingDockerfile) || !$root.featureFlags.dockerfileMirroring"
17+
ng-if = "(!SMC.state.advanced && !SMC.state.isMirroringDockerfile) || !$root.featureFlags.dockerfileMirroring"
1818
)
1919
svg.grid-content.row-xxs.shrink.iconnables.icons-dockerfile-lock
2020
use(
@@ -58,7 +58,7 @@
5858

5959
//- add logic for repository containers only
6060
.grid-block.shrink.align-center.well.gray.in.row-xxs(
61-
ng-if = "$root.featureFlags.dockerfileMirroring && (SMC.state.advanced || SMC.state.isMirroingDockerfile)"
61+
ng-if = "$root.featureFlags.dockerfileMirroring && (SMC.state.advanced || SMC.state.isMirroringDockerfile)"
6262
)
6363
svg.grid-content.row-xxs.shrink.iconnables.icons-sync
6464
use(
@@ -69,7 +69,7 @@
6969
)
7070
div Mirror Dockerfile
7171
small.small(
72-
ng-if = "state.isMirroingDockerfile"
72+
ng-if = "state.isMirroringDockerfile"
7373
)
7474
span.span.text-overflow.float-left(
7575
ng-title = "state.contextVersion.attrs.buildDockerfilePath"
@@ -95,7 +95,7 @@
9595
internal-modal-helper = "changeMirrorView"
9696
) Change…
9797
small.small(
98-
ng-if = "!state.isMirroingDockerfile"
98+
ng-if = "!state.isMirroringDockerfile"
9999
) Mirror with a Dockerfile from this repo on GitHub.
100100

101101
//- this should open the 'viewModalSync' view when syncing has not been set up
@@ -123,7 +123,7 @@
123123
explorer-title = "Build Files"
124124
file-model = "SMC.state.contextVersion"
125125
loading-promises-target = "editServerModal"
126-
ng-if = "!state.syncing && !SMC.state.isMirroingDockerfile"
126+
ng-if = "!state.syncing && !SMC.state.isMirroringDockerfile"
127127
open-items = "SMC.openItems"
128128
read-only = "!SMC.state.advanced"
129129
root-dir = "SMC.state.contextVersion.rootDir"

client/directives/environment/modals/modalSetupServer/setupMirroredServerModalController.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function SetupMirrorServerModalController(
127127
SMC.state.mainRepoContainerFile.name = repo.attrs.name;
128128
SMC.state.opts.name = normalizeRepoName(repo);
129129
SMC.state.promises.contextVersion = $q.when(SMC.state.contextVersion);
130-
SMC.state.isMirroingDockerfile = true;
130+
SMC.state.isMirroringDockerfile = true;
131131
var fullpath = keypather.get(SMC, 'state.build.contextVersion.attrs.buildDockerfilePath');
132132
// Get everything before the last '/' and add a '/' at the end
133133
var path = fullpath.replace(/^(.*)\/.*$/, '$1') + '/';
@@ -234,7 +234,7 @@ function SetupMirrorServerModalController(
234234

235235
SMC.changeFromMirrorModeToAdvanced = function () {
236236
SMC.state.advanced = true;
237-
SMC.state.isMirroingDockerfile = false;
237+
SMC.state.isMirroringDockerfile = false;
238238
var dockerfileBody = SMC.state.dockerfile.attrs.body;
239239
return promisify(SMC.state.contextVersion, 'update')({
240240
advanced: SMC.state.advanced,
@@ -271,7 +271,7 @@ function SetupMirrorServerModalController(
271271
if (SMC.TAB_VISIBILITY[tabName].featureFlagName && !$rootScope.featureFlags[SMC.TAB_VISIBILITY[tabName].featureFlagName]) {
272272
return false;
273273
}
274-
if (SMC.state.isMirroingDockerfile) {
274+
if (SMC.state.isMirroringDockerfile) {
275275
return SMC.TAB_VISIBILITY[tabName].mirror;
276276
}
277277
if (SMC.state.advanced) {

client/directives/environment/modals/modalSetupServer/setupServerModalController.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function SetupServerModalController(
136136
SMC.state.opts.name = normalizeRepoName(repo);
137137
SMC.state.promises.contextVersion = $q.when(SMC.state.contextVersion);
138138
if (keypather.get(SMC, 'state.build.contextVersion.attrs.buildDockerfilePath')) {
139-
SMC.state.isMirroingDockerfile = true;
139+
SMC.state.isMirroringDockerfile = true;
140140
SMC.state.step = null;
141141
SMC.selectedTab = 'buildfiles';
142142
var fullpath = keypather.get(SMC, 'state.build.contextVersion.attrs.buildDockerfilePath');
@@ -158,7 +158,7 @@ function SetupServerModalController(
158158
});
159159
}
160160
} else {
161-
// TODO: Remove code when removing `dockerFileMirroing` code
161+
// TODO: Remove code when removing `dockerFileMirroring` code
162162
$q.all({
163163
instances: fetchInstancesByPod(),
164164
repoList: fetchOwnerRepos($rootScope.dataApp.data.activeAccount.oauthName())
@@ -199,18 +199,18 @@ function SetupServerModalController(
199199
$scope.$watchCollection(function () {
200200
return SMC.state.opts.env;
201201
}, function (newEnvArray, oldEnvArray) {
202-
if (!SMC.state.isMirroingDockerfile && !angular.equals(newEnvArray, oldEnvArray)) {
202+
if (!SMC.state.isMirroringDockerfile && !angular.equals(newEnvArray, oldEnvArray)) {
203203
// Only update the Dockerfile if the envs have actually changed
204204
updateDockerfileFromState(SMC.state, true, true);
205205
}
206206
});
207207

208-
// TODO: Remove code when removing `dockerFileMirroing` code
208+
// TODO: Remove code when removing `dockerFileMirroring` code
209209
function normalizeRepoName(repo) {
210210
return repo.attrs.name.replace(/[^a-zA-Z0-9-]/g, '-');
211211
}
212212

213-
// TODO: Remove code when removing `dockerFileMirroing` code
213+
// TODO: Remove code when removing `dockerFileMirroring` code
214214
SMC.isRepoAdded = function (repo, instances) {
215215
// Since the newServers may have faked repos (just containing names), just check the name
216216

@@ -426,7 +426,7 @@ function SetupServerModalController(
426426
return !SMC.state.advanced;
427427
};
428428

429-
// TODO: Remove code when removing `dockerFileMirroing` code
429+
// TODO: Remove code when removing `dockerFileMirroring` code
430430
SMC.selectRepo = function (repo) {
431431
if (SMC.repoSelected || repo.isAdded) { return; }
432432
SMC.state.mainRepoContainerFile.name = repo.attrs.name;

client/directives/environment/modals/serverModalController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ function ServerModalController(
402402
this.getUpdatePromise = this.saveInstanceAndRefreshCards;
403403

404404
this.changeTab = function (tabname) {
405-
if (!this.state.advanced && !this.state.isMirroingDockerfile && !this.state.isNonRepoContainer) {
405+
if (!this.state.advanced && !this.state.isMirroringDockerfile && !this.state.isNonRepoContainer) {
406406
if ($filter('selectedStackInvalid')(this.state.selectedStack)) {
407407
tabname = 'repository';
408408
} else if (!this.state.startCommand) {

client/directives/environment/modals/setupTemplate/setupTemplateModalController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
// TODO: Some of this code could be removed after removing the
4-
// `dockerFileMirroing` flag, but not a lot because isolation uses this modal
4+
// `dockerFileMirroring` flag, but not a lot because isolation uses this modal
55
require('app')
66
.controller('SetupTemplateModalController', SetupTemplateModalController);
77
/**

client/directives/modals/modalNewContainer/newContainerModalController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function NewContainerModalController(
191191
}, inputs)
192192
});
193193
};
194-
// TODO: Remove code when removing `dockerFileMirroing` code
194+
// TODO: Remove code when removing `dockerFileMirroring` code
195195
NCMC.newTemplateContainer = function () {
196196
close();
197197
ModalService.showModal({

0 commit comments

Comments
 (0)