🔥 Better boolean conditions

This commit is contained in:
Liyas Thomas
2019-11-09 20:43:48 +05:30
parent 3b2fd26bd9
commit ca3abed605
3 changed files with 6 additions and 6 deletions

View File

@@ -409,7 +409,7 @@ button {
&:not([disabled]):focus {
color: var(--act-color);
fill: var(--act-color);
box-shadow: 0 0 0 2px var(--fg-color);
box-shadow: inset 0 0 0 2px var(--fg-color);
transition: all 0.2s ease-in-out;
}

View File

@@ -21,7 +21,7 @@ try {
let version = {};
// Get the current version name as the tag from Git.
version.name = process.env.TRAVIS_TAG || runCommand("git", ["tag"]);
version.name = process.env.TRAVIS_TAG || runCommand("git", ["tag --sort=committerdate | tail -1"]);
// FALLBACK: If version.name was unset, let's grab it from GitHub.
if (!version.name) {

View File

@@ -230,7 +230,7 @@
v-tooltip.bottom="{ content: isHidden ? 'Show Code' : 'Hide Code'}"
>
<i class="material-icons" v-if="isHidden">flash_on</i>
<i class="material-icons" v-if="!isHidden">flash_off</i>
<i class="material-icons" v-else>flash_off</i>
</button>
<button
:class="'icon' + (showPreRequestScript ? ' info-response' : '')"
@@ -246,7 +246,7 @@
<i
class="material-icons"
:class="showPreRequestScript"
v-if="showPreRequestScript"
v-else
>close</i>
</button>
</div>
@@ -373,7 +373,7 @@
</li>
</div>
</ul>
<ul v-if="auth === 'Bearer Token'">
<ul v-else-if="auth === 'Bearer Token'">
<li>
<input placeholder="Token" name="bearer_token" v-model="bearerToken" />
</li>
@@ -586,7 +586,7 @@
<div class="align-right" v-if="response.body && responseType === 'text/html'">
<button class="icon" @click.prevent="togglePreview">
<i class="material-icons" v-if="!previewEnabled">visibility</i>
<i class="material-icons" v-if="previewEnabled">visibility_off</i>
<i class="material-icons" v-else>visibility_off</i>
<span>{{ previewEnabled ? 'Hide Preview' : 'Preview HTML' }}</span>
</button>
</div>