Skip to content
Snippets Groups Projects

Add custom headers form to streaming audit events

4 files
+ 12
22
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -10,7 +10,7 @@ import {
@@ -10,7 +10,7 @@ import {
GlTableLite,
GlTableLite,
} from '@gitlab/ui';
} from '@gitlab/ui';
import { cloneDeep } from 'lodash';
import { cloneDeep } from 'lodash';
import { createAlert } from '~/flash';
import createFlash from '~/flash';
import { thWidthPercent } from '~/lib/utils/table_utility';
import { thWidthPercent } from '~/lib/utils/table_utility';
import externalAuditEventDestinationCreate from '../../graphql/create_external_destination.mutation.graphql';
import externalAuditEventDestinationCreate from '../../graphql/create_external_destination.mutation.graphql';
import {
import {
@@ -70,17 +70,15 @@ export default {
@@ -70,17 +70,15 @@ export default {
const { errors } = data.externalAuditEventDestinationCreate;
const { errors } = data.externalAuditEventDestinationCreate;
if (errors.length > 0) {
if (errors.length > 0) {
createAlert({
createFlash({
message: errors[0],
message: errors[0],
});
});
} else {
} else {
this.$emit('added');
this.$emit('added');
}
}
} catch (e) {
} catch (e) {
createAlert({
createFlash({
message: CREATING_ERROR,
message: CREATING_ERROR,
captureError: true,
error: e,
});
});
} finally {
} finally {
this.loading = false;
this.loading = false;
Loading