Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-06-30 03:09:05 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-30 03:09:05 +0300
commit8991d7b8a26ad83510bfeeee33e6ab858a1a8604 (patch)
treed8f95a68bdd90314a36056ae52df9c45823ab658 /app/assets/javascripts/environments
parent777f6da99ae8dd4111bb880893cee9c8cfefa132 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/environments')
-rw-r--r--app/assets/javascripts/environments/mixins/environments_mixin.js4
-rw-r--r--app/assets/javascripts/environments/mount_show.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/environments/mixins/environments_mixin.js b/app/assets/javascripts/environments/mixins/environments_mixin.js
index 73dc8c02485..f2b464464e9 100644
--- a/app/assets/javascripts/environments/mixins/environments_mixin.js
+++ b/app/assets/javascripts/environments/mixins/environments_mixin.js
@@ -145,7 +145,7 @@ export default {
deleteEnvironment(environment) {
const endpoint = environment.delete_path;
- const mountedToShow = environment.mounted_to_show;
+ const { onSingleEnvironmentPage } = environment;
const errorMessage = s__(
'Environments|An error occurred while deleting the environment. Check if the environment stopped; if not, stop it and try again.',
);
@@ -153,7 +153,7 @@ export default {
this.service
.deleteAction(endpoint)
.then(() => {
- if (!mountedToShow) {
+ if (!onSingleEnvironmentPage) {
// Reload as a first solution to bust the ETag cache
window.location.reload();
return;
diff --git a/app/assets/javascripts/environments/mount_show.js b/app/assets/javascripts/environments/mount_show.js
index 1929ed080a1..d0b68b0c14f 100644
--- a/app/assets/javascripts/environments/mount_show.js
+++ b/app/assets/javascripts/environments/mount_show.js
@@ -15,7 +15,7 @@ export default () => {
data() {
const environment = JSON.parse(JSON.stringify(container.dataset));
environment.delete_path = environment.deletePath;
- environment.mounted_to_show = true;
+ environment.onSingleEnvironmentPage = true;
return {
environment,