diff --git a/src/components/DeleteBatch.vue b/src/components/DeleteBatch.vue index ee08d35..6706eb8 100644 --- a/src/components/DeleteBatch.vue +++ b/src/components/DeleteBatch.vue @@ -142,7 +142,7 @@ export default { margin-top: 10px; } .del-batch-key-list-ol { - min-height: calc(50vh); + min-height: calc(100vh - 272px); overflow: auto; padding-left: 10px; list-style-position: inside; diff --git a/src/components/KeyListTree.vue b/src/components/KeyListTree.vue index a332e56..a33a8e9 100644 --- a/src/components/KeyListTree.vue +++ b/src/components/KeyListTree.vue @@ -142,8 +142,13 @@ export default { clipboard.writeText(this.rightClickNode.name); break; } - // del single key + // del single key["delete" in the key right menu] case 'delete': { + // del batch instead of single when multi operating + if (this.multiOperating) { + return this.deleteBatch(); + } + let keyBuffer = Buffer.from(this.rightClickNode.nameBuffer.data); this.client.del(keyBuffer).then((reply) => {