diff --git a/public/js/components/Cis/ProfilUpdate/ProfilUpdateView.js b/public/js/components/Cis/ProfilUpdate/ProfilUpdateView.js
index 7063aee83..66420b81a 100644
--- a/public/js/components/Cis/ProfilUpdate/ProfilUpdateView.js
+++ b/public/js/components/Cis/ProfilUpdate/ProfilUpdateView.js
@@ -248,13 +248,16 @@ export default {
title: Vue.computed(() => this.$p.t("profilUpdate", "actions")),
headerSort: false,
formatter: (cell, params) => {
+ let STATUS_PENDING =
+ cell.getRow().getData().status ==
+ this.profilUpdateStates["Pending"];
+
let html = `
${
- cell.getRow().getData().status ==
- this.profilUpdateStates["Pending"] &&
+ STATUS_PENDING ?
`
- `
+ `:''
}
`;
@@ -270,16 +273,18 @@ export default {
this.showAcceptDenyModal(cell.getRow().getData());
});
- node
- .querySelector("#acceptButton")
- .addEventListener("click", () => {
- this.acceptProfilUpdate(cell.getRow().getData());
- });
- node
- .querySelector("#denyButton")
- .addEventListener("click", () => {
- this.denyProfilUpdate(cell.getRow().getData());
- });
+ if (STATUS_PENDING) {
+ node
+ .querySelector("#acceptButton")
+ .addEventListener("click", () => {
+ this.acceptProfilUpdate(cell.getRow().getData());
+ });
+ node
+ .querySelector("#denyButton")
+ .addEventListener("click", () => {
+ this.denyProfilUpdate(cell.getRow().getData());
+ });
+ }
return node;
},