DEV: applies default modal class to a modal when shown (#9175)
This commit is contained in:
parent
4a0f36e46c
commit
1fca745beb
|
@ -9,7 +9,10 @@ export default function(name, opts) {
|
||||||
const route = container.lookup("route:application");
|
const route = container.lookup("route:application");
|
||||||
const modalController = route.controllerFor("modal");
|
const modalController = route.controllerFor("modal");
|
||||||
|
|
||||||
modalController.set("modalClass", opts.modalClass);
|
modalController.set(
|
||||||
|
"modalClass",
|
||||||
|
opts.modalClass || `${dasherize(name).toLowerCase()}-modal`
|
||||||
|
);
|
||||||
|
|
||||||
const controllerName = opts.admin ? `modals/${name}` : name;
|
const controllerName = opts.admin ? `modals/${name}` : name;
|
||||||
modalController.set("name", controllerName);
|
modalController.set("name", controllerName);
|
||||||
|
|
Loading…
Reference in New Issue