mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-31 01:09:22 +02:00
Use the full preset path in name() instead of just first 2 parts
This commit is contained in:
@@ -119,9 +119,9 @@ export function presetPreset(id, preset, fields, visible, rawPresets) {
|
||||
var origName = preset.name || '';
|
||||
preset.name = function() {
|
||||
if (preset.suggestion) {
|
||||
id = id.split('/');
|
||||
id = id[0] + '/' + id[1];
|
||||
return origName + ' - ' + t('presets.presets.' + id + '.name');
|
||||
var path = id.split('/');
|
||||
path.pop(); // remove brand name
|
||||
return origName + ' - ' + t('presets.presets.' + path.join('/') + '.name');
|
||||
}
|
||||
return preset.t('name', { 'default': origName });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user