Skip to content

Commit

Permalink
Changed artboard localstorage to use artboards.length value instead o…
Browse files Browse the repository at this point in the history
…f uid
  • Loading branch information
nwittwer committed Oct 28, 2018
1 parent c74df8e commit f2965eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vue/src/components/Artboards.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ export default {
},
methods: {
add() {
const next_id = this.artboards.length;
this.artboards.push({
id: artboardsLocalStorage.uid++,
id: next_id,
width: 375, // TODO: dynamic
height: 667 // TODO: dynamic
});
},
remove(id) {
// TODO: Add test for deleting multiple selected artboards
Expand Down

0 comments on commit f2965eb

Please sign in to comment.