From 3aa8a9cd76520d01ada8dd1ae9b643c066f2f254 Mon Sep 17 00:00:00 2001 From: guillermo Date: Wed, 3 Aug 2022 16:29:23 +0200 Subject: [PATCH] =?UTF-8?q?modificaci=C3=B3n=20para=20que=20soporte=20m?= =?UTF-8?q?=C3=A1s=20ramas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 9 +++++++-- src/style.css | 5 +++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main.js b/src/main.js index 128f0a9..5ae716b 100755 --- a/src/main.js +++ b/src/main.js @@ -187,8 +187,13 @@ var App = { }, onChangeBranchChange: function() { - this.$("branchButton").className = this.$("branch").value; - this.$("branch").className = this.$("branch").value; + if (this.$("branch").value == "master"||"test"||"dev") { + this.$("branchButton").className = this.$("branch").value; + this.$("branch").className = this.$("branch").value; + } else { + this.$("branchButton").className = null; + this.$("branch").className = null; + } this.$('user').focus(); }, diff --git a/src/style.css b/src/style.css index 0e9d32b..45102e3 100755 --- a/src/style.css +++ b/src/style.css @@ -26,7 +26,7 @@ input { } select { font-size: 1em; - background-color: black; + background-color: #8d8d8d; } select.master { background-color: #c20000; @@ -144,8 +144,9 @@ button:hover { #branchButton { float: left; border-radius: 25px; - color: white; + color: black; box-shadow: 0px 0px 5px 0px #000000; + background-color: #8d8d8d; } #branchButton:hover { box-shadow: none;