You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2017/12/03 12:43:20 UTC

[kibble] 02/07: if auth is required, display that it is

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git

commit 4bb68135e93d3010b7d30131b3cf0f38c4b2c754
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Dec 3 13:40:50 2017 +0100

    if auth is required, display that it is
---
 ui/js/coffee/sources.coffee | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/js/coffee/sources.coffee b/ui/js/coffee/sources.coffee
index 622096b..9e0f6a2 100644
--- a/ui/js/coffee/sources.coffee
+++ b/ui/js/coffee/sources.coffee
@@ -306,7 +306,7 @@ sourceadd = (json, state) ->
         obj.inject(keyValueForm('textarea', 'source', 'Source URL:', "For example: " + el.example + ". You can add multiple sources, one per line."))
         
         if el.optauth
-            obj.inject("Optional authentication options:")
+            obj.inject((if el.authrequired then "Required" else "Optional") + " authentication options:")
             for abit in el.optauth
                 obj.inject(keyValueForm('text', "#{abit}", abit))
         btn = new HTML('input', {class: "btn btn-primary btn-block", type: "button", onclick: "addSources('#{type}', this.form);", value: "Add source(s)"})

-- 
To stop receiving notification emails like this one, please contact
"commits@kibble.apache.org" <co...@kibble.apache.org>.