Skip to content

Commit

Permalink
Move relation-utilities.ts (back?) to frontend/src/utilities (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Apr 22, 2021
1 parent 0db1cba commit a168909
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/src/panel-related-items/related-items-edit-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import Graph from '../common-rdf/graph';
import ItemGraph from '../common-adapters/item-graph';
import explorerChannel from '../explorer/explorer-radio';
import { announceRoute } from '../explorer/utilities';
import { applicablePredicates, relationsFromModel } from '../utilities/relation-utilities';

import RelationEditor from './relation-editor-view';
import { applicablePredicates, relationsFromModel } from './relation-utilities';
import relatedItemsTemplate from './related-items-edit-template';

const announce = announceRoute('item:related:edit', ['model', 'id']);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/panel-related-items/related-items-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import Node from '../common-rdf/node';
import explorerChannel from '../explorer/explorer-radio';
import { announceRoute } from '../explorer/utilities';
import { getLabel, getLabelFromId } from '../utilities/linked-data-utilities';
import { applicablePredicates, relationsFromModel } from '../utilities/relation-utilities';

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

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

0 comments on commit a168909

Please sign in to comment.