Skip to content
This repository has been archived by the owner on Jul 31, 2022. It is now read-only.

Commit

Permalink
ArrayControl template clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
alkaitagi committed Feb 1, 2021
1 parent 27d304d commit 14df5c0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/ArrayControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@
<btn v-if="add !== undefined" icon="add" @click="action.add" />
<template v-if="array && item">
<btn v-if="copy" icon="queue" @click="action.copy" />
<template v-if="shiftTwo">
<btn v-if="shift" icon="keyboard_arrow_right" @click="action.shift(1)" />
<template v-else-if="shiftTwo">
<btn icon="keyboard_arrow_up" @click="action.shift(-1)" />
<btn icon="keyboard_arrow_down" @click="action.shift(1)" />
</template>
<btn
v-else-if="shift"
icon="keyboard_arrow_right"
@click="action.shift(1)"
/>
<ConfirmButton v-if="remove" @confirm="action.remove" />
</template>
</div>
Expand Down

0 comments on commit 14df5c0

Please sign in to comment.