blob: 943011949fd810905946f9764e8631c111136dcd (
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);
});
},
},
};
|