Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: vfolder share button has disappeared (#2646)
### TL;DR After #2529, vFodler share button has disappeared. - restore functionality to retrieve and process allowed vFolder hosts for the current user. - Removed folder explorer event listener which event are not used. ### What changed? - Removed `openFolderExplorer` method and its associated event listeners from `BackendAIData` class. - Restore methods in `BackendAiStorageList` class: - `_getCurrentKeypairResourcePolicy`: Fetches the current keypair's resource policy. - `_getAllowedVFolderHostsByCurrentUserInfo`: Retrieves and processes allowed vFolder hosts for the current user, considering domain, group, and resource policy permissions. - Restore `_viewStateChanged` and `connectedCallback` methods to call `_getAllowedVFolderHostsByCurrentUserInfo`. ### How to test? 1. Navigate to the data view in the Backend.AI interface. 2. Verify that folder explorer functionality still works as expected, despite the removal of the explicit event listener. 3. Create a vfolder 4. Verify that the share button in control column is displayed and works as expected. ### Why make this change? This change improves the efficiency of handling folder explorer actions and provides a more comprehensive way to determine allowed vFolder hosts for the current user. By considering domain, group, and resource policy permissions, the system can now present a more accurate and personalized view of available storage options to each user.
- Loading branch information