Edit icon for btnParameters

This commit is contained in:
OVSharova 2021-08-11 15:59:56 +03:00
parent b44160b0ca
commit 00f8ef4d37
2 changed files with 3 additions and 1 deletions

View file

@ -187,6 +187,7 @@ define([
var parameter = this.view.setMenuParameters(type);
if (parameter)
this.onParameterClick(parameter);
this.onParameterClick(parameter);
}
this.Effect = type;
@ -277,6 +278,7 @@ define([
if (this._state.Effect !== undefined) {
var item = me.listEffects.store.findWhere({value: this._state.Effect});
me.listEffects.menuPicker.selectRecord(item ? item : me.listEffects.menuPicker.items[0]);
this.view.btnParameters.setIconCls('toolbar__icon icon ' + item.get('imageUrl'));
}
if (me.btnParameters.menu.items.length > 0 && this._state.EffectType !== undefined)

View file

@ -189,7 +189,7 @@ define([
this.btnParameters = new Common.UI.Button({
cls: 'btn-toolbar x-huge icon-top',
caption: this.txtParameters,
iconCls: 'toolbar__icon icon transition-fade',
iconCls: 'toolbar__icon icon transition-none',
menu: new Common.UI.Menu({
items: this.createParametersMenuItems()}),
lock:[_set.slideDeleted, _set.noSlides, _set.disableOnStart, _set.transitLock]