Double click to show info dialog

This commit is contained in:
CzBiX
2019-05-03 19:44:12 +08:00
parent 94d715376b
commit 679de12a02

View File

@@ -95,7 +95,11 @@
hide-details
/>
</td>
<td :title="row.item.name" class="icon-label">
<td
:title="row.item.name"
class="icon-label"
@dblclick.prevent="showInfo(row.item)"
>
<v-icon :color="row.item.state | stateColor">{{ row.item.state | stateIcon }}</v-icon>
{{ row.item.name }}
</td>
@@ -330,8 +334,8 @@ export default Vue.extend({
confirmDelete() {
this.toDelete = this.selectedRows;
},
showInfo() {
this.toShowInfo = this.selectedRows;
showInfo(row?: any) {
this.toShowInfo = row ? [row] : this.selectedRows;
},
async resumeTorrents() {
await api.resumeTorrents(this.selectedHashes);