Compare commits
No commits in common. "509eea3188dd6ccc313a2e02d5253f505e198ac6" and "0c52abde7817fb3d6917581068bff869ecdf935e" have entirely different histories.
509eea3188
...
0c52abde78
@ -166,12 +166,10 @@ class OverviewManager {
|
||||
// ---- Migrate tab: Restore (standalone MigratePage) + Peers (PeersPage) ----
|
||||
|
||||
mountMigrate() {
|
||||
const seg = window.location.pathname.replace(/^\/overview\/migrate\/?/, '').split('/')[0];
|
||||
const sub = (seg === 'peers' || seg === 'restore') ? seg : (this._migrateSub || 'restore');
|
||||
this.switchMigrateSub(sub, { fromUrl: true });
|
||||
this.switchMigrateSub(this._migrateSub || 'restore');
|
||||
}
|
||||
|
||||
switchMigrateSub(sub, opts = {}) {
|
||||
switchMigrateSub(sub) {
|
||||
this._migrateSub = sub;
|
||||
const pane = document.getElementById('ov-pane-migrate');
|
||||
if (!pane) return;
|
||||
@ -179,7 +177,6 @@ class OverviewManager {
|
||||
pane.querySelectorAll('.ov-subtabs-content .tab-panel[data-ov-subtab]').forEach((p) => p.classList.toggle('active', p.dataset.ovSubtab === sub));
|
||||
if (sub === 'restore') this._mountRestore();
|
||||
else if (sub === 'peers') this._mountPeers();
|
||||
if (!opts.fromUrl) this._pushUrl(`/overview/migrate/${sub}`, true);
|
||||
}
|
||||
|
||||
async _mountRestore() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user