Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 725597b

Browse files
committed
Merge branch 'master' into imed-docu-branch
2 parents 7165952 + dd01efc commit 725597b

File tree

15 files changed

+100
-39
lines changed

15 files changed

+100
-39
lines changed

docs/docs/changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 2.3.4
2+
*Published on 2022/09/04*
3+
### Improved
4+
- If you choose a source different of current folder, now you can select the destination of your new notes [ISSUE#318](https://github.com/RafaelGB/obsidian-db-folder/issues/318)
5+
### No longer broken
6+
- Hotfix of add a filter [ISSUE#322](https://github.com/RafaelGB/obsidian-db-folder/issues/322)
7+
- Hotfix od delete a row in some cases [ISSUE#319](https://github.com/RafaelGB/obsidian-db-folder/issues/319)
18
# 2.3.3
29
*Published on 2022/09/02*
310
### Shiny new things

manifest-beta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "dbfolder",
33
"name": "DB Folder",
4-
"version": "2.3.3",
4+
"version": "2.3.4",
55
"minAppVersion": "0.15.9",
66
"description": "Folder with the capability to store and retrieve data from a folder like database",
77
"author": "RafaelGB",

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "dbfolder",
33
"name": "DB Folder",
4-
"version": "2.3.3",
4+
"version": "2.3.4",
55
"minAppVersion": "0.15.9",
66
"description": "Folder with the capability to store and retrieve data from a folder like database",
77
"author": "RafaelGB",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-dbfolder",
3-
"version": "2.3.3",
3+
"version": "2.3.4",
44
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
55
"main": "main.js",
66
"scripts": {

src/DatabaseView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ export class DatabaseView extends TextFileView implements HoverParent {
192192
destroy() {
193193
LOGGER.info(`=>destroy ${this.file.path}`);
194194
// Remove draggables from render, as the DOM has already detached
195+
this.getStateManager().unregisterView(this);
195196
this.plugin.removeView(this);
196197
this.tableContainer.remove();
197198
LOGGER.info(`<=destroy ${this.file.path}`);

src/StateManager.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ export default class StateManager {
1919
}
2020

2121
registerView(view: DatabaseView) {
22-
this.viewSet.clear();
23-
this.viewSet.add(view);
24-
view.initDatabase();
25-
22+
if (!this.viewSet.has(view)) {
23+
this.viewSet.add(view);
24+
view.initDatabase();
25+
}
2626
}
2727

2828
unregisterView(view: DatabaseView) {

src/cdm/SettingsModel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export interface LocalSettings {
3131
show_metadata_modified: boolean;
3232
show_metadata_tasks: boolean;
3333
source_form_result: string;
34+
source_destination_path: string;
3435
source_data: string;
3536
sticky_first_column: boolean;
3637
row_templates_folder: string;

src/cdm/TableStateInterface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export interface ConfigState {
2424
filters: FilterSettings;
2525
global: GlobalSettings;
2626
actions: {
27-
alterFilters: (filters: Partial<FilterSettings>) => void;
27+
alterFilters: (filters: Partial<FilterSettings>) => Promise<void>;
2828
alterConfig: (config: Partial<LocalSettings>) => void;
2929
}
3030
info: {

src/components/portals/DataviewFiltersPortal.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ import MenuUpIcon from "components/img/MenuUpIcon";
2222
const DataviewFiltersPortal = (props: DataviewFiltersProps) => {
2323
const { table } = props;
2424
const { tableState, view } = table.options.meta;
25-
const [ddbbConfig, filters, configActions] = tableState.configState(
26-
(state) => [state.ddbbConfig, state.filters, state.actions]
27-
);
28-
25+
const [ddbbConfig, configActions] = tableState.configState((state) => [
26+
state.ddbbConfig,
27+
state.actions,
28+
]);
29+
const filters = tableState.configState((state) => state.filters);
2930
const columns = tableState.columns((state) => state.columns);
3031
const dataActions = tableState.data((state) => state.actions);
3132
const [filtersRef, setFiltersRef] = useState(null);

src/helpers/Constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ export const DEFAULT_SETTINGS: DatabaseSettings = {
312312
show_metadata_tasks: false,
313313
source_data: SourceDataTypes.CURRENT_FOLDER,
314314
source_form_result: 'root',
315+
source_destination_path: '/',
315316
frontmatter_quote_wrap: false,
316317
row_templates_folder: '/',
317318
current_row_template: '',

0 commit comments

Comments
 (0)