2021-02-02 15:09:06 +00:00
|
|
|
<script>
|
|
|
|
import { GlButton } from '@gitlab/ui';
|
|
|
|
import { mapActions } from 'vuex';
|
2021-06-11 12:09:49 +00:00
|
|
|
import Tracking from '~/tracking';
|
2021-02-02 15:09:06 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
GlButton,
|
|
|
|
},
|
2021-06-11 12:09:49 +00:00
|
|
|
mixins: [Tracking.mixin()],
|
2021-02-02 15:09:06 +00:00
|
|
|
methods: {
|
|
|
|
...mapActions(['setAddColumnFormVisibility']),
|
2021-06-11 12:09:49 +00:00
|
|
|
handleClick() {
|
|
|
|
this.setAddColumnFormVisibility(true);
|
|
|
|
this.track('click_button', { label: 'create_list' });
|
|
|
|
},
|
2021-02-02 15:09:06 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2021-03-24 06:09:16 +00:00
|
|
|
<div class="gl-ml-3 gl-display-flex gl-align-items-center" data-testid="boards-create-list">
|
2021-06-11 12:09:49 +00:00
|
|
|
<gl-button variant="confirm" @click="handleClick">{{ __('Create list') }} </gl-button>
|
2021-03-24 06:09:16 +00:00
|
|
|
</div>
|
2021-02-02 15:09:06 +00:00
|
|
|
</template>
|