[DE PE SSE] Fix shape menu component
This commit is contained in:
parent
6320fc1aae
commit
bbdec163ad
|
@ -1579,11 +1579,8 @@ define([
|
||||||
selected: false,
|
selected: false,
|
||||||
groupName: groupName
|
groupName: groupName
|
||||||
};
|
};
|
||||||
me.recentShapes.unshift(model);
|
var arr = [model].concat(me.recentShapes.slice(0, 11));
|
||||||
if (me.recentShapes.length > 12) {
|
Common.localStorage.setItem(this.appPrefix + 'recent-shapes', JSON.stringify(arr));
|
||||||
me.recentShapes.splice(12, 1);
|
|
||||||
}
|
|
||||||
Common.localStorage.setItem(this.appPrefix + 'recent-shapes', JSON.stringify(me.recentShapes));
|
|
||||||
me.recentShapes = undefined;
|
me.recentShapes = undefined;
|
||||||
},
|
},
|
||||||
updateRecents: function () {
|
updateRecents: function () {
|
||||||
|
|
Loading…
Reference in a new issue