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-09-15 00:09:27 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-09-15 00:09:27 +0300
commit9689350c651e2428924ea1096905278536f1dc7a (patch)
tree5b0d455b6cad04f36cfb57c5a6c771edf4e45e09 /app/assets/javascripts/sidebar
parenta8caa9ce4922947ba057f259bccd017c2177e1b5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/sidebar')
-rw-r--r--app/assets/javascripts/sidebar/components/severity/constants.js2
-rw-r--r--app/assets/javascripts/sidebar/components/severity/sidebar_severity.vue14
2 files changed, 3 insertions, 13 deletions
diff --git a/app/assets/javascripts/sidebar/components/severity/constants.js b/app/assets/javascripts/sidebar/components/severity/constants.js
index c7d6a51ea1c..4f58ff38121 100644
--- a/app/assets/javascripts/sidebar/components/severity/constants.js
+++ b/app/assets/javascripts/sidebar/components/severity/constants.js
@@ -32,8 +32,6 @@ export const ISSUABLE_TYPES = {
INCIDENT: 'incident',
};
-export const SIDEBAR_ANIMATION_DURATION = 300;
-
export const I18N = {
UPDATE_SEVERITY_ERROR: s__('SeverityWidget|There was an error while updating severity.'),
TRY_AGAIN: __('Please try again'),
diff --git a/app/assets/javascripts/sidebar/components/severity/sidebar_severity.vue b/app/assets/javascripts/sidebar/components/severity/sidebar_severity.vue
index 65ff7a6d2ac..8f3610b912a 100644
--- a/app/assets/javascripts/sidebar/components/severity/sidebar_severity.vue
+++ b/app/assets/javascripts/sidebar/components/severity/sidebar_severity.vue
@@ -7,7 +7,7 @@ import {
GlSprintf,
GlLink,
} from '@gitlab/ui';
-import { INCIDENT_SEVERITY, ISSUABLE_TYPES, SIDEBAR_ANIMATION_DURATION, I18N } from './constants';
+import { INCIDENT_SEVERITY, ISSUABLE_TYPES, I18N } from './constants';
import updateIssuableSeverity from './graphql/mutations/update_issuable_severity.mutation.graphql';
import SeverityToken from './severity.vue';
import createFlash from '~/flash';
@@ -91,15 +91,8 @@ export default {
const event = new Event('hidden.gl.dropdown');
this.$el.dispatchEvent(event);
},
- toggleFormDropdown(collapsedSidebar) {
+ toggleFormDropdown() {
this.isDropdownShowing = !this.isDropdownShowing;
- const timeout = collapsedSidebar ? SIDEBAR_ANIMATION_DURATION : 0;
- setTimeout(() => {
- const { dropdown } = this.$refs;
- if (dropdown && this.isDropdownShowing) {
- dropdown.show();
- }
- }, timeout);
},
updateSeverity(value) {
this.hideDropdown();
@@ -143,7 +136,7 @@ export default {
<template>
<div ref="sidebarSeverity" class="block">
- <div ref="severity" class="sidebar-collapsed-icon" @click="toggleFormDropdown(true)">
+ <div ref="severity" class="sidebar-collapsed-icon" @click="toggleFormDropdown">
<severity-token :severity="selectedItem" :icon-size="14" :icon-only="true" />
<gl-tooltip :target="() => $refs.severity" boundary="viewport" placement="left">
<gl-sprintf :message="$options.i18n.SEVERITY_VALUE">
@@ -168,7 +161,6 @@ export default {
</p>
<gl-dropdown
- ref="dropdown"
:class="dropdownClass"
block
:text="selectedItem.label"