@itfin/components 1.3.60 → 1.3.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itfin/components",
3
- "version": "1.3.60",
3
+ "version": "1.3.61",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -200,6 +200,7 @@ export default class PanelList extends Vue {
200
200
  const newPanel:any = {
201
201
  id: this.nextId++,
202
202
  title: this.panels[type].caption(this.$t.bind(this), payload),
203
+ icon: this.panels[type].icon ? this.panels[type].icon(this.$t.bind(this), payload) : null,
203
204
  type,
204
205
  payload,
205
206
  isCollapsed: false,
@@ -248,6 +249,8 @@ export default class PanelList extends Vue {
248
249
  newPanel.getPayload = () => newPanel.payload;
249
250
  newPanel.setPayload = (value: any) => {
250
251
  newPanel.payload = value;
252
+ newPanel.title = this.panels[type].caption(this.$t.bind(this), value);
253
+ newPanel.icon = this.panels[type].icon ? this.panels[type].icon(this.$t.bind(this), payload) : null,
251
254
  this.setPanelHash()
252
255
  }
253
256
  newStack.push(newPanel);