Commit 5155ca52 authored by Nadia Sotnikova's avatar Nadia Sotnikova Committed by Vitaly Slobodin

Migrate Bootstrap button to GitLab UI in Comments

parent 207688e5
...@@ -423,27 +423,28 @@ export default { ...@@ -423,27 +423,28 @@ export default {
<div <div
class="btn-group gl-mr-3 comment-type-dropdown js-comment-type-dropdown droplab-dropdown" class="btn-group gl-mr-3 comment-type-dropdown js-comment-type-dropdown droplab-dropdown"
> >
<button <gl-button
:disabled="isSubmitButtonDisabled" :disabled="isSubmitButtonDisabled"
class="btn btn-success js-comment-button js-comment-submit-button qa-comment-button" class="js-comment-button js-comment-submit-button qa-comment-button"
type="submit" type="submit"
category="primary"
variant="success"
:data-track-label="trackingLabel" :data-track-label="trackingLabel"
data-track-event="click_button" data-track-event="click_button"
@click.prevent="handleSave()" @click.prevent="handleSave()"
>{{ commentButtonTitle }}</gl-button
> >
{{ commentButtonTitle }} <gl-button
</button>
<button
:disabled="isSubmitButtonDisabled" :disabled="isSubmitButtonDisabled"
name="button" name="button"
type="button" category="primary"
class="btn btn-success note-type-toggle js-note-new-discussion dropdown-toggle qa-note-dropdown" variant="success"
class="note-type-toggle js-note-new-discussion dropdown-toggle qa-note-dropdown"
data-display="static" data-display="static"
data-toggle="dropdown" data-toggle="dropdown"
icon="chevron-down"
:aria-label="__('Open comment type dropdown')" :aria-label="__('Open comment type dropdown')"
> />
<i aria-hidden="true" class="fa fa-caret-down toggle-icon"></i>
</button>
<ul class="note-type-dropdown dropdown-open-top dropdown-menu"> <ul class="note-type-dropdown dropdown-open-top dropdown-menu">
<li :class="{ 'droplab-item-selected': noteType === 'comment' }"> <li :class="{ 'droplab-item-selected': noteType === 'comment' }">
...@@ -467,11 +468,7 @@ export default { ...@@ -467,11 +468,7 @@ export default {
</li> </li>
<li class="divider droplab-item-ignore"></li> <li class="divider droplab-item-ignore"></li>
<li :class="{ 'droplab-item-selected': noteType === 'discussion' }"> <li :class="{ 'droplab-item-selected': noteType === 'discussion' }">
<button <button class="qa-discussion-option" @click.prevent="setNoteType('discussion')">
type="button"
class="btn btn-transparent qa-discussion-option"
@click.prevent="setNoteType('discussion')"
>
<i aria-hidden="true" class="fa fa-check icon"></i> <i aria-hidden="true" class="fa fa-check icon"></i>
<div class="description"> <div class="description">
<strong>{{ __('Start thread') }}</strong> <strong>{{ __('Start thread') }}</strong>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment