In the Run > Files view for read-only Tales, the (+) button is still enabled. This could lead the user to believe that they can freely add files, although the API operations themselves will fail due to permissions errors.
Fixes #541
Approach
Disable the (+) button when the Tale is not writable. There is logic already there for this, but it was unclear why it no longer functions.
How to Test
Prerequisites: Register the LIGO Tale (or another read-only public Tale)
Checkout and run ths branch locally, rebuild the dashboard
Login to the WholeTale Dashboard
Navigate to the Run > Files view for the LIGO Tale
On the left side, click the Home nav
You should see the (+) button at the top-right is enabled
On the left side, click the External Data nav
You should see the (+) button at the top-right is disabled
On the left side, click the Tale Workspace nav
You should see the (+) button at the top-right is disabled
Problem
In the Run > Files view for read-only Tales, the (+) button is still enabled. This could lead the user to believe that they can freely add files, although the API operations themselves will fail due to permissions errors.
Fixes #541
Approach
Disable the (+) button when the Tale is not writable. There is logic already there for this, but it was unclear why it no longer functions.
How to Test
Prerequisites: Register the LIGO Tale (or another read-only public Tale)