Skip to content

Commit bafd643

Browse files
committed
make archive/private filter unselectable
1 parent 6029d78 commit bafd643

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

web_src/js/components/DashboardRepoList.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ export default sfc; // activate the IDE's Vue plugin
364364
<div class="ui checkbox" ref="checkboxArchivedFilter" :title="checkboxArchivedFilterTitle">
365365
<!--the "hidden" is necessary to make the checkbox work without Fomantic UI js,
366366
otherwise if the "input" handles click event for intermediate status, it breaks the internal state-->
367-
<input type="checkbox" class="hidden" v-bind.prop="checkboxArchivedFilterProps">
367+
<input type="checkbox" class="no-select hidden" v-bind.prop="checkboxArchivedFilterProps">
368368
<label>
369369
<svg-icon name="octicon-archive" :size="16" class-name="tw-mr-1"/>
370370
{{ textShowArchived }}
@@ -373,7 +373,7 @@ export default sfc; // activate the IDE's Vue plugin
373373
</a>
374374
<a class="item" @click="togglePrivateFilter()">
375375
<div class="ui checkbox" ref="checkboxPrivateFilter" :title="checkboxPrivateFilterTitle">
376-
<input type="checkbox" class="hidden" v-bind.prop="checkboxPrivateFilterProps">
376+
<input type="checkbox" class="no-select hidden" v-bind.prop="checkboxPrivateFilterProps">
377377
<label>
378378
<svg-icon name="octicon-lock" :size="16" class-name="tw-mr-1"/>
379379
{{ textShowPrivate }}
@@ -545,4 +545,8 @@ ul li:not(:last-child) {
545545
.repo-owner-name-list li.active {
546546
background: var(--color-hover);
547547
}
548+
549+
.no-select {
550+
pointer-events: none;
551+
}
548552
</style>

0 commit comments

Comments
 (0)