Commit 74efbc94 authored by Illya Klymov's avatar Illya Klymov

Merge branch 'oncall-edit-delete-button-tooltips' into 'master'

Add on call schedule edit/delete tooltip

See merge request gitlab-org/gitlab!49361
parents cac2115c 9b5c9ade
<script> <script>
import { GlSprintf, GlCard, GlButtonGroup, GlButton, GlModalDirective } from '@gitlab/ui'; import {
GlSprintf,
GlCard,
GlButtonGroup,
GlButton,
GlModalDirective,
GlTooltipDirective,
} from '@gitlab/ui';
import { s__ } from '~/locale'; import { s__ } from '~/locale';
import ScheduleTimelineSection from './schedule/components/schedule_timeline_section.vue'; import ScheduleTimelineSection from './schedule/components/schedule_timeline_section.vue';
import DeleteScheduleModal from './delete_schedule_modal.vue'; import DeleteScheduleModal from './delete_schedule_modal.vue';
...@@ -10,8 +17,8 @@ import { getFormattedTimezone } from '../utils/common_utils'; ...@@ -10,8 +17,8 @@ import { getFormattedTimezone } from '../utils/common_utils';
export const i18n = { export const i18n = {
scheduleForTz: s__('OnCallSchedules|On-call schedule for the %{tzShort}'), scheduleForTz: s__('OnCallSchedules|On-call schedule for the %{tzShort}'),
updateScheduleLabel: s__('OnCallSchedules|Edit schedule'), editScheduleLabel: s__('OnCallSchedules|Edit schedule'),
destroyScheduleLabel: s__('OnCallSchedules|Delete schedule'), deleteScheduleLabel: s__('OnCallSchedules|Delete schedule'),
}; };
export default { export default {
...@@ -29,6 +36,7 @@ export default { ...@@ -29,6 +36,7 @@ export default {
}, },
directives: { directives: {
GlModal: GlModalDirective, GlModal: GlModalDirective,
GlTooltip: GlTooltipDirective,
}, },
props: { props: {
schedule: { schedule: {
...@@ -57,13 +65,17 @@ export default { ...@@ -57,13 +65,17 @@ export default {
<gl-button-group> <gl-button-group>
<gl-button <gl-button
v-gl-modal.updateScheduleModal v-gl-modal.updateScheduleModal
v-gl-tooltip
:title="$options.i18n.editScheduleLabel"
icon="pencil" icon="pencil"
:aria-label="$options.i18n.updateScheduleLabel" :aria-label="$options.i18n.editScheduleLabel"
/> />
<gl-button <gl-button
v-gl-modal.deleteScheduleModal v-gl-modal.deleteScheduleModal
v-gl-tooltip
:title="$options.i18n.deleteScheduleLabel"
icon="remove" icon="remove"
:aria-label="$options.i18n.destroyScheduleLabel" :aria-label="$options.i18n.deleteScheduleLabel"
/> />
</gl-button-group> </gl-button-group>
</div> </div>
......
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