1. 11 Oct, 2018 1 commit
    • Yorick Peterse's avatar
      Support pushing of feature flags to the frontend · 21940d1e
      Yorick Peterse authored
      This adds a method to Gitlab::GonHelper called
      `push_frontend_feature_flag`. This method can be used to easily expose
      the state of a feature flag to Javascript code. For example, using this
      method we may write the following controller code:
      
          before_action do
            push_frontend_feature_flag(:vim_bindings)
          end
      
          def index
            # ...
          end
      
          def edit
            # ...
          end
      
      In Javascript we can then check the state of the flag as follows:
      
          if ( gon.features.vimBindings ) {
            // ...
          }
      
      Fixes https://gitlab.com/gitlab-org/release/framework/issues/17
      21940d1e
  2. 08 Oct, 2018 30 commits
  3. 07 Oct, 2018 4 commits
  4. 06 Oct, 2018 5 commits