From 57468d5d473707b65d2635b55619523159cf1cf6 Mon Sep 17 00:00:00 2001 From: papush Date: Wed, 26 May 2021 11:50:02 +0200 Subject: visual feedback that a redirect is disabled --- chrome/js/redirector-ui.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/js/redirector-ui.js') 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); -- cgit v1.2.3-70-g09d2