-
-
Notifications
You must be signed in to change notification settings - Fork 352
allow exporting remote collection #2813
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,11 +117,19 @@ export class QueryCollectionService { | |
} | ||
|
||
collection.queries = collection.queries.map((query) => { | ||
return { ...query, id: uuid(), created_at: now, updated_at: now }; | ||
return { | ||
...query, | ||
storageType: 'local', | ||
id: uuid(), | ||
created_at: now, | ||
updated_at: now, | ||
}; | ||
Comment on lines
+120
to
+126
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
}); | ||
|
||
return this.storage.queryCollections.add({ | ||
...collection, | ||
storageType: 'local', | ||
Comment on lines
130
to
+131
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
workspaceId: WORKSPACES.LOCAL, | ||
id: collectionId ?? uuid(), | ||
parentPath, | ||
created_at: now, | ||
|
@@ -694,7 +702,7 @@ export class QueryCollectionService { | |
} | ||
|
||
async getCollectionTreeByCollectionId(collectionId: CollectionID) { | ||
const collection = await this.getLocalCollectionByID(collectionId); | ||
const collection = await this.getCollectionByID(collectionId); | ||
if (!collection) { | ||
throw new Error('Collection not found!'); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,8 +40,29 @@ | |
.ant-modal-confirm-body .ant-modal-confirm-content { | ||
color: var(--theme-font-color); | ||
} | ||
.ant-btn { | ||
// background: var(--theme-off-bg-color); | ||
// color: var(--theme-font-color); | ||
// border-color: var(--theme-border-color); | ||
border-radius: 4px; | ||
// font-size: fontsize(12); | ||
// padding: 0.5rem 1rem; | ||
} | ||
.ant-btn-primary { | ||
background-color: var(--primary-color); | ||
border-color: var(--primary-color); | ||
color: var(--theme-font-color); | ||
} | ||
.ant-btn-primary:focus, | ||
.ant-btn-primary:hover { | ||
background-color: var(--primary-color); | ||
border-color: var(--primary-color); | ||
color: var(--theme-font-color); | ||
} | ||
.ant-btn:focus, | ||
.ant-btn:hover { | ||
color: var(--primary-color); | ||
border-color: var(--primary-color); | ||
Comment on lines
+62
to
+65
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These styles are quite broad and could potentially affect other buttons in the application unintentionally. Consider using a more specific class or nesting these styles within a more specific context to avoid unintended side effects. .altair-app .ant-btn:focus,
.altair-app .ant-btn:hover {
color: var(--primary-color);
border-color: var(--primary-color);
} |
||
} | ||
|
||
.anticon { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding more context to the error message, such as the collectionServerId, to aid in debugging.