Skip to content

Commit 13bbe19

Browse files
committed
Rename attributes/Index to AttributesList
This is not the index for an attribute, it's the list of all attributes. Consistent with RelationshipTypesList for reltypes.
1 parent ccb7a64 commit 13bbe19

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/MusicBrainz/Server/Controller/Attributes.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ sub index : Path('/attributes') Args(0) {
4343

4444
$c->stash(
4545
current_view => 'Node',
46-
component_path => 'attributes/Index',
46+
component_path => 'attributes/AttributesList',
4747
component_props => {
4848
entityTypeModels => \@entity_type_models,
4949
otherModels => \@other_models,

root/attributes/Index.js renamed to root/attributes/AttributesList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type Props = {
3535
+otherModels: Array<string>,
3636
};
3737

38-
const Attributes = ({
38+
const AttributesList = ({
3939
entityTypeModels,
4040
otherModels,
4141
}: Props): React$Element<typeof Layout> => (
@@ -50,4 +50,4 @@ const Attributes = ({
5050
</Layout>
5151
);
5252

53-
export default Attributes;
53+
export default AttributesList;

root/server/components.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ export default {
8484
'artist_credit/ArtistCreditIndex': (): Promise<mixed> => import('../artist_credit/ArtistCreditIndex.js'),
8585
'artist_credit/EntityList': (): Promise<mixed> => import('../artist_credit/EntityList.js'),
8686
'attributes/Attribute': (): Promise<mixed> => import('../attributes/Attribute.js'),
87+
'attributes/AttributesList': (): Promise<mixed> => import('../attributes/AttributesList.js'),
8788
'attributes/CannotRemoveAttribute': (): Promise<mixed> => import('../attributes/CannotRemoveAttribute.js'),
8889
'attributes/DeleteAttribute': (): Promise<mixed> => import('../attributes/DeleteAttribute.js'),
89-
'attributes/Index': (): Promise<mixed> => import('../attributes/Index.js'),
9090
'attributes/Language': (): Promise<mixed> => import('../attributes/Language.js'),
9191
'attributes/Script': (): Promise<mixed> => import('../attributes/Script.js'),
9292
'cdstub/BrowseCDStubs': (): Promise<mixed> => import('../cdstub/BrowseCDStubs.js'),

0 commit comments

Comments
 (0)