diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-07 12:09:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-07 12:09:00 +0300 |
commit | bdd03bc52aee1c3f37e25ae9b1fc8a27885b7428 (patch) | |
tree | e409a6e1f76d9dc69c5413a06e9b4c4b3f74fef7 /app/assets/javascripts/design_management/pages | |
parent | bed53d96d214fd96ea688d3e86e53457ce50043e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/design_management/pages')
-rw-r--r-- | app/assets/javascripts/design_management/pages/index.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/design_management/pages/index.vue b/app/assets/javascripts/design_management/pages/index.vue index 915eb2aaee8..6dbf7585283 100644 --- a/app/assets/javascripts/design_management/pages/index.vue +++ b/app/assets/javascripts/design_management/pages/index.vue @@ -1,5 +1,6 @@ <script> import { GlLoadingIcon, GlButton, GlAlert, GlLink, GlSprintf } from '@gitlab/ui'; +import { GlBreakpointInstance } from '@gitlab/ui/dist/utils'; import VueDraggable from 'vuedraggable'; import permissionsQuery from 'shared_queries/design_management/design_permissions.query.graphql'; import getDesignListQuery from 'shared_queries/design_management/get_design_list.query.graphql'; @@ -97,6 +98,9 @@ export default { isSaving() { return this.filesToBeSaved.length > 0; }, + isMobile() { + return GlBreakpointInstance.getBreakpointSize() === 'xs'; + }, canCreateDesign() { return this.permissions.createDesign; }, @@ -429,7 +433,7 @@ export default { <vue-draggable v-else :value="designs" - :disabled="!isLatestVersion || isReorderingInProgress" + :disabled="!isLatestVersion || isReorderingInProgress || isMobile" v-bind="$options.dragOptions" tag="ol" draggable=".js-design-tile" |