Skip to content

Commit

Permalink
finalize permission item
Browse files Browse the repository at this point in the history
  • Loading branch information
francescolf committed Sep 20, 2023
1 parent da9993e commit 825e2c6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/PermissionListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ library.add(faUser, faNewspaper, faTag, faXmark);
<div class="col-8">
<h5 class="col ms-2 mt-1 text-truncate">
<i class="fas fa-user"></i>
<span v-if="!objectid">&nbsp;{{ grant }}</span>
<span v-if="!objectid">&nbsp; {{ grant }}</span>
<span v-else>
&nbsp;{{ grant }} &bull; {{ autofill[grant][objectid] }}
</span>
Expand Down Expand Up @@ -106,7 +106,16 @@ export default {
btn.classList.add("pending");
btn.classList.remove("btn-list-item-action");
btn.innerHTML = "Sicuro?";
setTimeout(() => {
this.stopPendingDeletion();
}, 5000);
}
},
stopPendingDeletion() {
var btn = this.$el.querySelector("#btn-remove");
btn.classList.remove("pending");
btn.classList.add("btn-list-item-action");
btn.innerHTML = '<i class="fas fa-xmark"></i>';
}
}
};
Expand Down

0 comments on commit 825e2c6

Please sign in to comment.