Skip to content

Commit ba97c65

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 e3c4cf8 commit ba97c65

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
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
@@ -30,7 +30,7 @@ component AttributeList(modelList: Array<string>) {
3030
);
3131
}
3232

33-
component Attributes(
33+
component AttributesList(
3434
entityTypeModels: Array<string>,
3535
otherModels: Array<string>,
3636
) {
@@ -47,4 +47,4 @@ component Attributes(
4747
);
4848
}
4949

50-
export default Attributes;
50+
export default AttributesList;

root/server/components.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ 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/CreateAttribute': (): Promise<mixed> => import('../attributes/CreateAttribute.js'),
89-
'attributes/DeleteAttribute': (): Promise<mixed> => import('../attributes/DeleteAttribute.js'),
9090
'attributes/EditAttribute': (): Promise<mixed> => import('../attributes/EditAttribute.js'),
91-
'attributes/Index': (): Promise<mixed> => import('../attributes/Index.js'),
91+
'attributes/DeleteAttribute': (): Promise<mixed> => import('../attributes/DeleteAttribute.js'),
9292
'attributes/Language': (): Promise<mixed> => import('../attributes/Language.js'),
9393
'attributes/Script': (): Promise<mixed> => import('../attributes/Script.js'),
9494
'cdstub/BrowseCDStubs': (): Promise<mixed> => import('../cdstub/BrowseCDStubs.js'),

0 commit comments

Comments
 (0)