Skip to content

Commit

Permalink
added isLinkable property
Browse files Browse the repository at this point in the history
  • Loading branch information
abarnhard committed Aug 21, 2014
1 parent 3fe6bcf commit a606a2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/models/treasure.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function Treasure(o){
this.photos = [];
this.hints = o.hints;
this.isFound = false;
this.isLinkable = this.order === 1 ? true : false;
}

Object.defineProperty(Treasure, 'collection', {
Expand Down
9 changes: 6 additions & 3 deletions db/treasures.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"photos":["/img/000000000000000000000001/0.png", "/img/000000000000000000000001/1.png"],
"hints":["hint 1", "hint 2"],
"tags":["tag 1", "tag 2"],
"isFound":false
"isFound":false,
"isLinkable":true
}
{
"_id":{"$oid":"000000000000000000000002"},
Expand All @@ -18,7 +19,8 @@
"photos":["/img/000000000000000000000002/0.png", "/img/000000000000000000000002/1.png"],
"hints":["hint 1", "hint 2"],
"tags":["tag 1", "tag 2"],
"isFound":false
"isFound":false,
"isLinkable":false
}
{
"_id":{"$oid":"000000000000000000000003"},
Expand All @@ -29,5 +31,6 @@
"photos":["/img/000000000000000000000003/0.png", "/img/000000000000000000000003/1.png"],
"hints":["hint 1", "hint 2"],
"tags":["tag 1", "tag 2"],
"isFound":false
"isFound":false,
"isLinkable":false
}

0 comments on commit a606a2a

Please sign in to comment.