the last few things.
This commit is contained in:
@@ -79,9 +79,14 @@ module.exports = class {
|
||||
}
|
||||
}
|
||||
|
||||
clearLimit() {
|
||||
clearLimit(e) {
|
||||
this.state.filter = Object.assign({}, this.state.filter, {limit: 0})
|
||||
|
||||
// Disable mobile URL fallback.
|
||||
if (e && e.preventDefault) {
|
||||
e.preventDefault()
|
||||
}
|
||||
|
||||
this.refresh()
|
||||
this.updateQuery(this.state.filter)
|
||||
}
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
<main class="logs-page with-right">
|
||||
<logs-table logs=state.logs on-addfilter("addFilter") />
|
||||
<if(state.filter.limit > 0)>
|
||||
<div class="show-more-button" on-click("clearLimit")>
|
||||
<a href="/logs?limit=0" class="show-more-button" on-click("clearLimit")>
|
||||
<span>Show All</span>
|
||||
</div>
|
||||
</a>
|
||||
</if>
|
||||
</main>
|
||||
<add-log-modal enabled=(state.modal === "log.add") on-close("close") />
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
main.logs-page {
|
||||
div.show-more-button {
|
||||
.show-more-button {
|
||||
margin: 1em 0;
|
||||
padding: 0.5em 2em;
|
||||
font-size: 2em;
|
||||
text-align: center;
|
||||
user-select: none;
|
||||
display: block;
|
||||
|
||||
color: #DA1;
|
||||
}
|
||||
|
||||
div.show-more-button:hover {
|
||||
.show-more-button:hover {
|
||||
cursor: pointer;
|
||||
|
||||
text-decoration: underline;
|
||||
|
||||
Reference in New Issue
Block a user