Browse Source

Added .currentPalette and .currentPaletteName properties to CTRLPalettesStore

dev
Bryan Miller 5 years ago
parent
commit
54b30b2ca6
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      app/js/ctrls/CTRLPalettesStore.js

+ 8
- 0
app/js/ctrls/CTRLPalettesStore.js View File

@@ -183,6 +183,14 @@ class CTRLPalettesStore{
}).bind(this));
}

get currentPalette(){
return (Palettes.length > 0) ? Palettes[CurrentPaletteIndex][1] : null;
}

get currentPaletteName(){
return (Palettes.length > 0) ? Palettes[CurrentPaletteIndex][0].value : "";
}

get obj(){
var d = [];
for (let i=0; i < Palettes.length; i++){

Loading…
Cancel
Save