mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 04:42:57 +00:00
Refactor upload modal for generic storage and read-only config
- Updates Upload Modal UI labels to be provider-agnostic (e.g., 'Storage Credentials', 'Endpoint'). - Implements a read-only 'Summary View' for configured storage connections, collapsing the editable form by default. - Adds 'Manage Storage' button that navigates to the Profile Modal's storage pane. - Updates `initUploadModal.js` to inject the navigation callback. - Updates `r2Service.js` status messages to be generic. - Fixes unlock flow to ensure UI updates after storage unlock.
This commit is contained in:
1 parent
0f4775819e
commit
2b446e8ddd
5 files changed
+273
-129
No files matched your search
@@ -48,6 +48,11 @@ export function initUploadModal({
|
||||
safeEncodeNpub,
|
||||
eventTarget: events,
|
||||
container,
|
||||
onRequestStorageSettings: () => {
|
||||
if (app && app.profileController && typeof app.profileController.show === "function") {
|
||||
app.profileController.show("storage");
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
const boundSubmitHandler =
|
||||
|
||||
Reference in new issue
Block a user