mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 19:37:55 +08:00
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("/"),
|
||||
outletName = segments[segments.length-2],
|
||||
uniqueName = segments[segments.length-1];
|
||||
const segments = res.split("/");
|
||||
const outletName = segments[segments.length-2];
|
||||
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}}
|
||||
{{/unless}}
|
||||
|
||||
{{plugin-outlet "user_custom_preferences"}}
|
||||
{{plugin-outlet "user-custom-preferences"}}
|
||||
</div>
|
||||
|
||||
<div class="control-group category">
|
||||
|
|
Loading…
Reference in New Issue
Block a user