Clean up stage persistence UI further

This commit is contained in:
Shaunak Kishore
2015-10-01 23:46:07 -04:00
parent f14a1fd958
commit 87bcceff46
5 changed files with 75 additions and 60 deletions

View File

@ -3,9 +3,10 @@
stages.path = class PathStage extends stages.AbstractStage {
constructor(glyph) {
super('path');
this.adjusted = glyph.stages.path;
}
refresh(glyph) {
const d = glyph.stages.path;
refreshUI() {
const d = this.adjusted;
Session.set('stage.paths', [{d: d, fill: 'gray', stroke: 'gray'}]);
Session.set('stage.status',
d ? [] : [{cls: 'error', message: 'No path data.'}]);