Skip to content

Commit a168909

Browse files
committed
Move relation-utilities.ts (back?) to frontend/src/utilities (#455)
1 parent 0db1cba commit a168909

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

frontend/src/panel-related-items/related-items-edit-view.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ import Graph from '../common-rdf/graph';
1111
import ItemGraph from '../common-adapters/item-graph';
1212
import explorerChannel from '../explorer/explorer-radio';
1313
import { announceRoute } from '../explorer/utilities';
14+
import { applicablePredicates, relationsFromModel } from '../utilities/relation-utilities';
15+
1416
import RelationEditor from './relation-editor-view';
15-
import { applicablePredicates, relationsFromModel } from './relation-utilities';
1617
import relatedItemsTemplate from './related-items-edit-template';
1718

1819
const announce = announceRoute('item:related:edit', ['model', 'id']);

frontend/src/panel-related-items/related-items-view.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import Node from '../common-rdf/node';
99
import explorerChannel from '../explorer/explorer-radio';
1010
import { announceRoute } from '../explorer/utilities';
1111
import { getLabel, getLabelFromId } from '../utilities/linked-data-utilities';
12+
import { applicablePredicates, relationsFromModel } from '../utilities/relation-utilities';
1213

1314
import relatedItemsTemplate from './related-items-template';
1415
import RelatedItemsRelationView from './related-items-relation-view';
15-
import { applicablePredicates, relationsFromModel } from './relation-utilities';
1616

1717
const announce = announceRoute('item:related', ['model', 'id']);
1818
const getPredicateId = r => r.get('predicate').id;

0 commit comments

Comments
 (0)