mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Merge pull request #1686 from PR0M3TH3AN/fix-storage-isolation-7292502268303926887
Fix storage credentials persistence on profile switch
This commit is contained in:
2 files changed
+5
No files matched your search
@@ -53,6 +53,7 @@ import {
|
||||
} from "./feedEngine/index.js";
|
||||
import watchHistoryService from "./watchHistoryService.js";
|
||||
import r2Service from "./services/r2Service.js";
|
||||
import storageService from "./services/storageService.js";
|
||||
import {
|
||||
getVideoNoteErrorMessage,
|
||||
normalizeVideoNotePayload,
|
||||
|
||||
@@ -8974,6 +8974,8 @@ export class ProfileModalController {
|
||||
const storageService = this.services.storageService;
|
||||
const pubkey = this.normalizeHexPubkey(this.getActivePubkey());
|
||||
|
||||
this.handleClearStorage();
|
||||
|
||||
if (!pubkey) {
|
||||
// Not logged in
|
||||
if (this.storageUnlockSection) this.storageUnlockSection.classList.add("hidden");
|
||||
@@ -9300,6 +9302,8 @@ export class ProfileModalController {
|
||||
this.storageBucketInput.value = "";
|
||||
this.storagePrefixInput.value = "";
|
||||
this.storageDefaultInput.checked = false;
|
||||
this.storageProviderInput.value = "cloudflare_r2";
|
||||
this.updateStorageFormVisibility();
|
||||
this.setStorageFormStatus("", "info");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user