There was an error while loading. Please reload this page.
1 parent 72d9624 commit 96293a9Copy full SHA for 96293a9
1 file changed
panel/src/components/Views/Preview/PreviewView.vue
@@ -189,9 +189,17 @@ export const Preview = {
189
},
190
/**
191
* Reloads the preview view for the current ID
192
+ * but preserves the tab selection
193
*/
194
reload() {
- this.onTreeNavigate({ id: this.id }, true);
195
+ let url = this.$panel.view.path;
196
+ const query = new URLSearchParams(window.location.search);
197
+
198
+ if (query.has("tab") === true) {
199
+ url += "?tab=" + query.get("tab");
200
+ }
201
202
+ this.$panel.view.open(url);
203
204
togglePin() {
205
this.isPinned = !this.isPinned;
0 commit comments