liquid_feedback_frontend

changeset 1491:4badb51649f7

Suggestion opinion defaults to neutral
author bsw
date Mon Aug 26 15:27:05 2019 +0200 (2019-08-26)
parents 63ce1a5c05c1
children faaf9ec3e09c
files app/main/initiative/_suggestions.lua
line diff
     1.1 --- a/app/main/initiative/_suggestions.lua	Wed Mar 27 12:40:33 2019 +0100
     1.2 +++ b/app/main/initiative/_suggestions.lua	Mon Aug 26 15:27:05 2019 +0200
     1.3 @@ -221,7 +221,7 @@
     1.4                        }
     1.5                        
     1.6                        for i, option in ipairs(options) do
     1.7 -                        local active = opinion.degree == option.degree
     1.8 +                        local active = opinion.degree == option.degree or opinion.degree == nil and option.degree == 0
     1.9                          ui.tag{
    1.10                            tag = "label", 
    1.11                            attr = { class = "mdl-radio mdl-js-radio mdl-js-ripple-effect" }, 

Impressum / About Us