delete batch when multi operating

This commit is contained in:
qishibo 2021-04-27 20:44:04 +08:00
parent 9d94cb492d
commit fe59ea9c19
2 changed files with 7 additions and 2 deletions

View File

@ -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;

View File

@ -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) => {