From 048d79601e3c617e83e4aa87b9174d82a373c513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20K=C3=B6nig?= Date: Thu, 23 May 2024 19:50:52 +0200 Subject: [PATCH] adds shard relocation confirm msg and cancel button, fixes #236 --- CHANGELOG.md | 1 + .../stylesheets/theme/components/shards.css | 23 +++++------ src/components/shards/ShardsTable.vue | 38 ++++++++++++------- .../components/shards/ShardsTable.ts | 22 +++++++++-- src/locales/cn.json | 5 ++- src/locales/en.json | 6 ++- 6 files changed, 65 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 47a901f0..4e42584d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 1.0.8 * fix update&delete documents that use `routing`, fixes [#235](https://github.com/cars10/elasticvue/issues/235) +* adds shard relocation confirm msg and cancel button, fixes [#236](https://github.com/cars10/elasticvue/issues/236) ## 1.0.7 diff --git a/src/assets/stylesheets/theme/components/shards.css b/src/assets/stylesheets/theme/components/shards.css index 1b6042f8..4e27ed90 100644 --- a/src/assets/stylesheets/theme/components/shards.css +++ b/src/assets/stylesheets/theme/components/shards.css @@ -1,16 +1,17 @@ .shard-reroute-target { - background-color: transparent; - position: absolute; - height: 100%; - width: 100%; - top: 0; - left: 0; - right: 0; - bottom: 0; - border: 2px dashed grey; + background-color: transparent; + position: absolute; + height: 100%; + width: 100%; + top: 0; + left: 0; + right: 0; + bottom: 0; + border: 2px dashed grey; + color: var(--theme-muted-color) !important; } .shard-reroute-target:hover { - background-color: rgba(150, 150, 150, 0.5); - cursor: pointer; + background-color: rgba(150, 150, 150, 0.5); + cursor: pointer; } \ No newline at end of file diff --git a/src/components/shards/ShardsTable.vue b/src/components/shards/ShardsTable.vue index 49f9bf47..eaa600fb 100644 --- a/src/components/shards/ShardsTable.vue +++ b/src/components/shards/ShardsTable.vue @@ -1,17 +1,26 @@