Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle variable pane on window import #2144

Merged
merged 1 commit into from Mar 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -13,6 +13,7 @@ import * as fromRoot from '../store';
import * as queryActions from '../store/query/query.action';
import * as headerActions from '../store/headers/headers.action';
import * as variableActions from '../store/variables/variables.action';
import * as dialogsActions from '../store/dialogs/dialogs.action';
import * as windowActions from '../store/windows/windows.action';
import * as windowsMetaActions from '../store/windows-meta/windows-meta.action';
import * as preRequestActions from '../store/pre-request/pre-request.action';
Expand Down Expand Up @@ -138,8 +139,8 @@ export class WindowService {
// TODO: Check that there is data to be exported

return {
version: 1 as const,
type: 'window' as const,
version: 1,
type: 'window',
query: clonedWindow.query.query || '',
apiUrl: clonedWindow.query.url,
variables: clonedWindow.variables.variables,
Expand Down Expand Up @@ -269,6 +270,9 @@ export class WindowService {
this.store.dispatch(
new variableActions.UpdateVariablesAction(data.variables, windowId)
);
this.store.dispatch(
new dialogsActions.ToggleVariableDialogAction(windowId)
);
}

if (data.subscriptionUrl) {
Expand Down