mirror of
https://github.com/discourse/discourse.git
synced 2025-02-28 06:30:12 +08:00
Allow reopened widgets to use hbs
templates
This commit is contained in:
parent
132cbac600
commit
7df349afd6
@ -127,6 +127,10 @@ export function reopenWidget(name, opts) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (opts.template) {
|
||||||
|
opts.html = opts.template;
|
||||||
|
}
|
||||||
|
|
||||||
Object.keys(opts).forEach(k => existing.prototype[k] = opts[k]);
|
Object.keys(opts).forEach(k => existing.prototype[k] = opts[k]);
|
||||||
return existing;
|
return existing;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user