Skip to content

Commit

Permalink
feat(scan): add secondary scan buttons after settings
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Dec 29, 2020
1 parent 6863da7 commit 277d96a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion pages/scan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@

</el-form>

<div class="scan__buttons-secondary" v-if="openedPanels.includes('settings')">
<el-button :disabled="!isScanEnabled" type="primary" @click="sendTask">Scan</el-button>
<el-button :disabled="!isScanEnabled" type="primary" class="scan__lighthouse-button" @click="sendTask({maxRequests: 1, lighthouse: true})">Lighthouse one page</el-button>
</div>

<div class="scan__current">
<!-- {{ currentScanPage }} / {{ currentScanQueue }} -->
<el-progress :percentage="currentScanPercent" :format="showCurrentScan"></el-progress>
Expand Down Expand Up @@ -186,6 +191,10 @@
}
}
.scan__buttons-secondary {
clear: both;
}
.scan__current {
padding-top: 10px;
// margin-left: 10px;
Expand Down Expand Up @@ -216,9 +225,14 @@
max-width: 615px;
margin: 0 auto;
.el-collapse-item__header {
.el-collapse-item__header,
.el-collapse-item__wrap {
border: none;
}
.el-collapse-item__content {
padding-bottom: 0;
}
}
.scan__log-container {
Expand Down

0 comments on commit 277d96a

Please sign in to comment.