diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-10 16:46:51 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-10 16:46:51 +0000 |
commit | 04ac4180cb5ba0df460034c7e64862056fd498b3 (patch) | |
tree | ca5267d12fa2aab80c1c35593b96c8cfceaa747b /app/assets/javascripts | |
parent | 4e9ceea7f8ff3e097ad45f6f54c1b7165248e848 (diff) | |
download | gitlab-ce-04ac4180cb5ba0df460034c7e64862056fd498b3.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts')
3 files changed, 7 insertions, 8 deletions
diff --git a/app/assets/javascripts/admin/broadcast_messages/components/messages_table.vue b/app/assets/javascripts/admin/broadcast_messages/components/messages_table.vue index 2e8ecbd3a5d..c95d4c96ea9 100644 --- a/app/assets/javascripts/admin/broadcast_messages/components/messages_table.vue +++ b/app/assets/javascripts/admin/broadcast_messages/components/messages_table.vue @@ -1,5 +1,5 @@ <script> -import { GlButton, GlTableLite } from '@gitlab/ui'; +import { GlBroadcastMessage, GlButton, GlTableLite } from '@gitlab/ui'; import SafeHtml from '~/vue_shared/directives/safe_html'; import { __ } from '~/locale'; import { formatDate } from '~/lib/utils/datetime/date_format_utility'; @@ -9,6 +9,7 @@ const DEFAULT_TD_CLASSES = 'gl-vertical-align-middle!'; export default { name: 'MessagesTable', components: { + GlBroadcastMessage, GlButton, GlTableLite, }, @@ -68,9 +69,6 @@ export default { tdClass: `${DEFAULT_TD_CLASSES} gl-white-space-nowrap`, }, ], - safeHtmlConfig: { - ADD_TAGS: ['use'], - }, methods: { formatDate(dateString) { return formatDate(new Date(dateString)); @@ -85,8 +83,10 @@ export default { :tbody-tr-attr="{ 'data-testid': 'message-row' }" stacked="md" > - <template #cell(preview)="{ item: { preview } }"> - <div v-safe-html:[$options.safeHtmlConfig]="preview"></div> + <template #cell(preview)="{ item: { message, theme, broadcast_type, dismissable } }"> + <gl-broadcast-message :theme="theme" :type="broadcast_type" :dismissible="dismissable"> + {{ message }} + </gl-broadcast-message> </template> <template #cell(starts_at)="{ item: { starts_at } }"> diff --git a/app/assets/javascripts/super_sidebar/components/menu_section.vue b/app/assets/javascripts/super_sidebar/components/menu_section.vue index 49e481feb04..5de6e04d827 100644 --- a/app/assets/javascripts/super_sidebar/components/menu_section.vue +++ b/app/assets/javascripts/super_sidebar/components/menu_section.vue @@ -102,7 +102,7 @@ export default { :id="itemId" v-model="isExpanded" :aria-label="item.title" - class="gl-list-style-none gl-p-0 gl-m-0" + class="gl-list-style-none gl-p-0 gl-m-0 gl-transition-duration-medium gl-transition-timing-function-ease" data-qa-selector="menu_section" :data-qa-section-name="item.title" tag="ul" diff --git a/app/assets/javascripts/vue_shared/components/markdown/mount_markdown_editor.js b/app/assets/javascripts/vue_shared/components/markdown/mount_markdown_editor.js index b0e609e2433..ac4f06a665d 100644 --- a/app/assets/javascripts/vue_shared/components/markdown/mount_markdown_editor.js +++ b/app/assets/javascripts/vue_shared/components/markdown/mount_markdown_editor.js @@ -105,7 +105,6 @@ export function mountMarkdownEditor() { enableAutocomplete: true, autocompleteDataSources: gl.GfmAutoComplete?.dataSources, supportsQuickActions: true, - autofocus: true, }, }); }, |