Skip to content

Commit

Permalink
new minor version
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGB committed Sep 5, 2022
1 parent f289836 commit b3b121f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
6 changes: 6 additions & 0 deletions docs/docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2.3.5
*Published on 2022/09/05*
### Shiny new things
- New command & ribbon icon to generate a new database with a helpful wizard to guide you through the process [ISSUE#126](https://github.com/RafaelGB/obsidian-db-folder/issues/126)
### No longer broken
- Problem with saving query on yaml solved [ISSUE#325](https://github.com/RafaelGB/obsidian-db-folder/issues/325)
# 2.3.4
*Published on 2022/09/04*
### Improved
Expand Down
2 changes: 1 addition & 1 deletion manifest-beta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "dbfolder",
"name": "DB Folder",
"version": "2.3.4",
"version": "2.3.5",
"minAppVersion": "0.15.9",
"description": "Folder with the capability to store and retrieve data from a folder like database",
"author": "RafaelGB",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "dbfolder",
"name": "DB Folder",
"version": "2.3.4",
"version": "2.3.5",
"minAppVersion": "0.15.9",
"description": "Folder with the capability to store and retrieve data from a folder like database",
"author": "RafaelGB",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-dbfolder",
"version": "2.3.4",
"version": "2.3.5",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"main": "main.js",
"scripts": {
Expand Down
7 changes: 5 additions & 2 deletions src/commands/addDatabaseHelper/databaseHelperCreationModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ export class DatabaseHelperCreationModalManager {
async createButtonHandler() {
try {
const targetFolder = resolve_tfolder(this.destinationFolder);
this.databaseHelperCreationModal.local_settings.source_form_result = this.parseValueToThuthyYaml(
this.databaseHelperCreationModal.local_settings.source_form_result
);
await generateNewDatabase(
generateDbConfiguration(this.databaseHelperCreationModal.local_settings),
targetFolder,
Expand Down Expand Up @@ -174,7 +177,7 @@ export class DatabaseHelperCreationModalManager {
queryHandler(containerEl: HTMLElement) {
const query_promise = async (value: string): Promise<void> => {
// update settings
this.databaseHelperCreationModal.local_settings.source_form_result = this.parseValueToThuthyYaml(value);
this.databaseHelperCreationModal.local_settings.source_form_result = value;
};
new Setting(containerEl)
.setName('Dataview query')
Expand All @@ -191,7 +194,7 @@ export class DatabaseHelperCreationModalManager {
[],
this.databaseHelperCreationModal.local_settings.source_form_result);
if (query) {
DataviewService.getDataviewAPI().tryQuery(query)
DataviewService.getDataviewAPI().tryQuery(query.replace('TABLE ,', 'TABLE '))
.then(() => {
new Notice(`Dataview query "${query}" is valid!`, 2000);
})
Expand Down

0 comments on commit b3b121f

Please sign in to comment.