aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/PropertiesView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/PropertiesView.tsx')
-rw-r--r--src/client/views/PropertiesView.tsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx
index 7c16e0ddb..b03c1a64e 100644
--- a/src/client/views/PropertiesView.tsx
+++ b/src/client/views/PropertiesView.tsx
@@ -41,7 +41,6 @@ import './PropertiesView.scss';
import { DefaultStyleProvider, SetFilterOpener as SetPropertiesFilterOpener } from './StyleProvider';
import { DocumentView } from './nodes/DocumentView';
import { StyleProviderFuncType } from './nodes/FieldView';
-import { KeyValueBox } from './nodes/KeyValueBox';
import { OpenWhere } from './nodes/OpenWhere';
import { PresBox, PresEffect, PresEffectDirection } from './nodes/trails';
@@ -208,7 +207,7 @@ export class PropertiesView extends ObservableReactComponent<PropertiesViewProps
fontSize={10}
GetValue={() => editableContents}
SetValue={(value: string) => {
- value !== '-multiple-' && docs.map(doc => KeyValueBox.SetField(doc, key, value, true));
+ value !== '-multiple-' && docs.map(doc => Doc.SetField(doc, key, value, true));
return true;
}}
/>
@@ -252,10 +251,10 @@ export class PropertiesView extends ObservableReactComponent<PropertiesViewProps
if (value.indexOf(':') !== -1) {
const newVal = value[0].toUpperCase() + value.substring(1, value.length);
const splits = newVal.split(':');
- KeyValueBox.SetField(doc, splits[0], splits[1], true);
+ Doc.SetField(doc, splits[0], splits[1], true);
const tags = StrCast(doc.tags, ':');
if (tags.includes(`${splits[0]}:`) && splits[1] === 'undefined') {
- KeyValueBox.SetField(doc, 'tags', `"${tags.replace(splits[0] + ':', '')}"`, true);
+ Doc.SetField(doc, 'tags', `"${tags.replace(splits[0] + ':', '')}"`, true);
}
return true;
}
@@ -645,7 +644,7 @@ export class PropertiesView extends ObservableReactComponent<PropertiesViewProps
DocumentView.Selected().map(dv => Doc.SetInPlace(dv.Document, 'title', value, true));
} else if (this.dataDoc) {
if (this.selectedDoc) Doc.SetInPlace(this.selectedDoc, 'title', value, true);
- else KeyValueBox.SetField(this.dataDoc, 'title', value as string, true);
+ else Doc.SetField(this.dataDoc, 'title', value as string, true);
}
};