discourse/app/assets/javascripts/wizard/index.js
Jarek Radosz fcb4e5a1a1
DEV: Make wizard an ember addon (#17027)
Co-authored-by: David Taylor <david@taylorhq.com>
2022-06-17 14:50:21 +02:00

21 lines
419 B
JavaScript

"use strict";
const calculateCacheKeyForTree = require("calculate-cache-key-for-tree");
module.exports = {
name: require("./package").name,
treeForAddon(tree) {
let app = this._findHost();
app.options.wizardTree = this._super.treeForAddon.call(this, tree);
return;
},
cacheKeyForTree(tree) {
return calculateCacheKeyForTree(tree, this);
},
isDevelopingAddon() {
return true;
},
};