From ff8299c65d414ebd987dc68ac6035edb6340d412 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 24 Jun 2021 18:07:15 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .../javascripts/pages/sessions/new/index.js | 2 + .../components/dismissible_alert.vue | 9 ++-- .../groups/application_controller.rb | 8 ++++ .../groups/group_members_controller.rb | 8 ---- .../groups/_invite_members_modal.html.haml | 15 +++---- app/views/layouts/_flash.html.haml | 2 + app/views/projects/_invite_members.html.haml | 2 +- .../projects/_invite_members_modal.html.haml | 15 +++---- app/views/projects/issues/show.html.haml | 2 +- .../projects/merge_requests/show.html.haml | 2 +- .../_confirm_your_email_alert.html.haml | 7 ++++ .../_invite_members_trigger.html.haml | 8 ---- doc/administration/database_load_balancing.md | 18 ++++---- doc/api/packages/nuget.md | 29 +++++++++++++ doc/ci/README.md | 2 +- doc/user/gitlab_com/index.md | 7 ++++ locale/gitlab.pot | 6 +++ spec/features/users/login_spec.rb | 18 +++++--- spec/frontend/vue_alerts_spec.js | 4 +- .../components/dismissible_alert_spec.js | 41 ++++++++++++++----- 20 files changed, 141 insertions(+), 64 deletions(-) create mode 100644 app/views/shared/_confirm_your_email_alert.html.haml delete mode 100644 app/views/shared/issuable/_invite_members_trigger.html.haml diff --git a/app/assets/javascripts/pages/sessions/new/index.js b/app/assets/javascripts/pages/sessions/new/index.js index d39f56cfd03..465aed88c01 100644 --- a/app/assets/javascripts/pages/sessions/new/index.js +++ b/app/assets/javascripts/pages/sessions/new/index.js @@ -1,4 +1,5 @@ import $ from 'jquery'; +import initVueAlerts from '~/vue_alerts'; import NoEmojiValidator from '../../../emoji/no_emoji_validator'; import LengthValidator from './length_validator'; import OAuthRememberMe from './oauth_remember_me'; @@ -19,4 +20,5 @@ document.addEventListener('DOMContentLoaded', () => { // Save the URL fragment from the current window location. This will be present if the user was // redirected to sign-in after attempting to access a protected URL that included a fragment. preserveUrlFragment(window.location.hash); + initVueAlerts(); }); diff --git a/app/assets/javascripts/vue_shared/components/dismissible_alert.vue b/app/assets/javascripts/vue_shared/components/dismissible_alert.vue index 8494f99fd7d..52371e42ba1 100644 --- a/app/assets/javascripts/vue_shared/components/dismissible_alert.vue +++ b/app/assets/javascripts/vue_shared/components/dismissible_alert.vue @@ -1,11 +1,14 @@