Skip to content

Commit

Permalink
fix ui bug when relocating shards
Browse files Browse the repository at this point in the history
  • Loading branch information
cars10 committed Dec 21, 2024
1 parent 2cc65cf commit 421c185
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 24 deletions.
1 change: 0 additions & 1 deletion src/assets/stylesheets/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
@import 'theme/components/list';
@import 'theme/components/reload_button';
@import 'theme/components/resizable';
@import 'theme/components/shards';
@import 'theme/components/snackbar';
@import 'theme/components/table';
@import 'theme/components/text';
Expand Down
17 changes: 0 additions & 17 deletions src/assets/stylesheets/theme/components/shards.css

This file was deleted.

12 changes: 6 additions & 6 deletions src/components/shards/ShardsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,19 @@
:class="{marked: markedColumnIndex === i}"
@mouseover="markColumn(i)"
@mouseleave="unmarkColumn">
<div v-if="currentReroutingShard.index === col.name && currentReroutingShard.node !== row" class="flex">
<q-btn class="q-mx-sm q-my-md" @click="reroute(currentReroutingShard, row)" color="primary-dark">
{{ t('shards.shards_table.reroute.label', { node: row }) }}
</q-btn>
</div>

<div class="flex">
<index-shard v-for="(shard, j) in shards.shards?.[row]?.[col.name]"
:key="`${col.name}_actual_shard_${i}_${j}`"
:shard="shard"
:action="initReroute"
re-routable
:outlined="!(currentReroutingShard.index === col.name && currentReroutingShard.node === row && currentReroutingShard.shard === shard.shard)" />

<div v-if="currentReroutingShard.index === col.name && currentReroutingShard.node !== row">
<button class="shard-reroute-target" @click="reroute(currentReroutingShard, row)">
{{ t('shards.shards_table.reroute.label', { node: row }) }}
</button>
</div>
</div>
</td>
</tr>
Expand Down

0 comments on commit 421c185

Please sign in to comment.