define a variable in the page (say varRead = 0) and use it to set the property of the button to disabled
In the close event of the Modal set the variable to a 1 i.e. varRead = 1
Use the value of that variable to toggle the visibility of the button i.e.
dmx-show="varRead.value==1"
The technique is very similar to this except the condition is different using a variable rather then the .server status
1 Like