FIX: `user_custom_preferences` did not match other outlet names
This commit is contained in:
parent
43c62d413c
commit
ce0a50eae1
|
@ -62,11 +62,18 @@ function findOutlets(collection, callback) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const segments = res.split("/"),
|
const segments = res.split("/");
|
||||||
outletName = segments[segments.length-2],
|
const outletName = segments[segments.length-2];
|
||||||
uniqueName = segments[segments.length-1];
|
const uniqueName = segments[segments.length-1];
|
||||||
|
|
||||||
|
const dashedName = outletName.replace(/_/g, '-');
|
||||||
|
if (dashedName !== outletName) {
|
||||||
|
Ember.warn("DEPRECATION: You need to use dashes in outlet names, not underscores");
|
||||||
|
callback(dashedName, res, uniqueName);
|
||||||
|
} else {
|
||||||
|
callback(outletName, res, uniqueName);
|
||||||
|
}
|
||||||
|
|
||||||
callback(outletName, res, uniqueName);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -216,7 +216,7 @@
|
||||||
{{preference-checkbox labelKey="user.edit_history_public" checked=model.edit_history_public}}
|
{{preference-checkbox labelKey="user.edit_history_public" checked=model.edit_history_public}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
{{plugin-outlet "user_custom_preferences"}}
|
{{plugin-outlet "user-custom-preferences"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control-group category">
|
<div class="control-group category">
|
||||||
|
|
Loading…
Reference in New Issue