(context)
| 146 | } |
| 147 | |
| 148 | getRenderData (context) { |
| 149 | if (context == null) { context = {} } |
| 150 | context = super.getRenderData(context) |
| 151 | context.itemCategoryCollections = this.itemCategoryCollections |
| 152 | context.itemCategories = _.keys(this.itemCategoryCollections) |
| 153 | context.itemCategoryNames = (Array.from(context.itemCategories).map((category) => $.i18n.t(`items.${category}`))) |
| 154 | context.gems = me.gems() |
| 155 | return context |
| 156 | } |
| 157 | |
| 158 | afterRender () { |
| 159 | super.afterRender() |