Welcome to mirror list, hosted at ThFree Co, Russian Federation.

approvals.js « mixins « vue_merge_request_widget « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e50555ca8757788e6387124f154f566a02b41e32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { hideFlash } from '~/flash';

export default {
  methods: {
    clearError() {
      this.$emit('clearError');
      this.hasApprovalAuthError = false;
      const flashEl = document.querySelector('.flash-alert');
      if (flashEl) {
        hideFlash(flashEl);
      }
    },
    refreshApprovals() {
      return this.service.fetchApprovals().then(data => {
        this.mr.setApprovals(data);
      });
    },
  },
};