1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<script>
import { mapActions, mapState } from 'vuex';
import projectDropdown from './project_dropdown.vue';
import errorTrackingForm from './error_tracking_form.vue';
export default {
components: { projectDropdown, errorTrackingForm },
props: {
listProjectsEndpoint: {
type: String,
required: true,
},
operationsSettingsEndpoint: {
type: String,
required: true,
},
},
computed: {
...mapState(['settingsLoading']),
},
methods: {
...mapActions(['updateSettings']),
handleSubmit() {
this.updateSettings({
operationsSettingsEndpoint: this.operationsSettingsEndpoint,
});
},
},
};
</script>
<template>
<div>
<error-tracking-form :list-projects-endpoint="listProjectsEndpoint" />
<div class="form-group">
<project-dropdown />
</div>
<button
:disabled="settingsLoading"
class="btn btn-success"
data-qa-id="error-tracking-button"
@click="handleSubmit"
>
{{ __('Save changes') }}
</button>
</div>
</template>
|