mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-09 09:35:02 +09:00
revert files in graph
This commit is contained in:
parent
d498414e6a
commit
afdfb68d06
3 changed files with 2 additions and 9 deletions
8
dist/workers/graph.js
vendored
8
dist/workers/graph.js
vendored
|
@ -192,12 +192,6 @@ updateForces = () => {
|
|||
|
||||
updateOrphans();
|
||||
|
||||
// Filter files
|
||||
if (!settings.files) {
|
||||
const layouts = [ Layout.File, Layout.Image, Layout.Audio, Layout.Video, Layout.Pdf ];
|
||||
nodes = nodes.filter(d => !layouts.includes(d.layout) || d.forceShow);
|
||||
};
|
||||
|
||||
// Filter links
|
||||
if (!settings.link) {
|
||||
edges = edges.filter(d => d.type != EdgeType.Link);
|
||||
|
@ -262,7 +256,7 @@ updateForces = () => {
|
|||
};
|
||||
|
||||
updateSettings = (param) => {
|
||||
const updateKeys = [ 'link', 'relation', 'orphan', 'local', 'files' ];
|
||||
const updateKeys = [ 'link', 'relation', 'orphan', 'local' ];
|
||||
|
||||
let needUpdate = false;
|
||||
let needFocus = false;
|
||||
|
|
|
@ -110,7 +110,6 @@ const MenuGraphSettings = observer(class MenuGraphSettings extends React.Compone
|
|||
{ id: 'link', name: translate('menuGraphSettingsLinks') },
|
||||
{ id: 'relation', name: translate('menuGraphSettingsRelations') },
|
||||
{ id: 'orphan', name: translate('menuGraphSettingsUnlinkedObjects') },
|
||||
{ id: 'files', name: translate('menuGraphSettingsFiles') },
|
||||
]
|
||||
},
|
||||
];
|
||||
|
|
|
@ -871,7 +871,7 @@ class UtilData {
|
|||
{ operator: I.FilterOperator.And, relationKey: 'isHiddenDiscovery', condition: I.FilterCondition.NotEqual, value: true },
|
||||
{ operator: I.FilterOperator.And, relationKey: 'isArchived', condition: I.FilterCondition.NotEqual, value: true },
|
||||
{ operator: I.FilterOperator.And, relationKey: 'isDeleted', condition: I.FilterCondition.NotEqual, value: true },
|
||||
{ operator: I.FilterOperator.And, relationKey: 'layout', condition: I.FilterCondition.NotIn, value: UtilObject.getSystemLayouts() },
|
||||
{ operator: I.FilterOperator.And, relationKey: 'layout', condition: I.FilterCondition.NotIn, value: UtilObject.getFileAndSystemLayouts() },
|
||||
{ operator: I.FilterOperator.And, relationKey: 'id', condition: I.FilterCondition.NotIn, value: [ '_anytype_profile' ] },
|
||||
{ operator: I.FilterOperator.And, relationKey: 'spaceId', condition: I.FilterCondition.In, value: [ space ] },
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue