From fe59ea9c19bdb77a59bfd36c7822b88aefcdc721 Mon Sep 17 00:00:00 2001 From: qishibo Date: Tue, 27 Apr 2021 20:44:04 +0800 Subject: [PATCH] delete batch when multi operating --- src/components/DeleteBatch.vue | 2 +- src/components/KeyListTree.vue | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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) => {