From 4d938eb2f6d347173d43c79513d4a1af8cd64e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Tamargo?= Date: Thu, 31 Oct 2024 14:38:04 +0100 Subject: [PATCH] MBS-13802: Always use "Created (in)" for characters We changed this for sidebar display for Created a while ago, but I missed the artist editor, and area should use Created in for consistency. --- root/artist/utils.js | 2 ++ root/static/scripts/edit/MB/Control/ArtistEdit.js | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/root/artist/utils.js b/root/artist/utils.js index a6ece52bace..2b0a4468c45 100644 --- a/root/artist/utils.js +++ b/root/artist/utils.js @@ -43,6 +43,8 @@ export function artistEndAreaLabel(typeId: ?number): string { case 5: case 6: return addColonText(lp('Dissolved in', 'group artist')); + case 4: + return addColonText(lp('Created in', 'character artist')); default: return addColonText(l('End area')); } diff --git a/root/static/scripts/edit/MB/Control/ArtistEdit.js b/root/static/scripts/edit/MB/Control/ArtistEdit.js index 288097094bf..df98b8b4111 100644 --- a/root/static/scripts/edit/MB/Control/ArtistEdit.js +++ b/root/static/scripts/edit/MB/Control/ArtistEdit.js @@ -40,6 +40,7 @@ MB.Control.ArtistEdit = function () { * Unknown: 0 * Person: 1 * Group: 2 + * Character: 4 * Orchestra: 5 * Choir: 6 */ @@ -70,6 +71,19 @@ MB.Control.ArtistEdit = function () { self.disableGender(); break; + case '4': + self.changeDateText( + addColonText(lp('Created', 'character artist')), + addColonText(lp('Ended', 'artist end date')), + l('This artist has ended.'), + ); + self.changeAreaText( + addColonText(lp('Created in', 'character artist')), + addColonText(l('End area')), + ); + self.enableGender(); + break; + case '0': default: self.changeDateText(