diff options
author | papush | 2021-05-26 11:50:02 +0200 |
---|---|---|
committer | papush | 2021-05-26 11:50:02 +0200 |
commit | 57468d5d473707b65d2635b55619523159cf1cf6 (patch) | |
tree | a9d2a8a9ca49b55956392c48d14e135eab6c5df7 /chrome/js/redirector-ui.js | |
parent | a993f7c62c1becdef805dd54ee22c1265dfc3615 (diff) |
visual feedback that a redirect is disabled
Diffstat (limited to 'chrome/js/redirector-ui.js')
-rw-r--r-- | chrome/js/redirector-ui.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/js/redirector-ui.js b/chrome/js/redirector-ui.js index 78e83e2..4d7d211 100644 --- a/chrome/js/redirector-ui.js +++ b/chrome/js/redirector-ui.js @@ -134,6 +134,11 @@ function databind() { for (var i = 0; i < Redirector.redirectCount; i++) { var redirect = Redirector.getRedirectAt(i); var node = $(template); + if (redirect.disabled) { + node.find('.disabled').show(); + } else { + node.find('.disabled').hide(); + } node.find('.pattern').html(redirect.includePattern); node.find('.redirectTo').html(redirect.redirectUrl); node.find('.exampleUrl').html(redirect.exampleUrl); |