Skip to content

Commit

Permalink
Add setting default values to site to fix sorting incomplete sites
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Jul 4, 2019
1 parent 892a0ae commit bd47713
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/PageSites/Site.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ class Site extends Class
@menu_helps = null

setRow: (row) ->
# Default values
row.settings.modified ?= 0
row.settings.size ?= 0
row.settings.added ?= 0
row.settings.peers ?= 0

# Message
if row.event?[0] == "updated" and row.content_updated != false
@setMessage "Updated!", "done"
Expand Down

0 comments on commit bd47713

Please sign in to comment.