I am working on a GET request that determines whether the user is an Admin or not. The challenge I am facing is that I need to show a button using the v-if
directive to verify if the value is true or false. By default, the value is set to false
.
Information:
https://i.sstatic.net/DEWFA.png
Next, we have the button:
https://i.sstatic.net/3IFcJ.png
Followed by the .then
in the beforeCreate
function: