Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ui):Improve bulk action design in the execution list page. #6240

Merged
merged 3 commits into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 31 additions & 22 deletions ui/src/components/executions/Executions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,40 +73,48 @@
@update:select-all="toggleAllSelection"
@unselect="toggleAllUnselected"
>
<!-- Always visible buttons -->
<el-button v-if="canUpdate" :icon="StateMachine" @click="changeStatusDialogVisible = !changeStatusDialogVisible">
{{ $t("change state") }}
</el-button>
<el-button v-if="canUpdate" :icon="Restart" @click="restartExecutions()">
{{ $t("restart") }}
</el-button>
<el-button v-if="canCreate" :icon="PlayBoxMultiple" @click="replayExecutions()">
{{ $t("replay") }}
</el-button>
<el-button v-if="canUpdate" :icon="StateMachine" @click="changeStatusDialogVisible = !changeStatusDialogVisible">
{{ $t("change state") }}
</el-button>
<el-button v-if="canUpdate" :icon="StopCircleOutline" @click="killExecutions()">
{{ $t("kill") }}
</el-button>
<el-button v-if="canDelete" :icon="Delete" @click="deleteExecutions()">
{{ $t("delete") }}
</el-button>
<el-button
v-if="canUpdate"
:icon="LabelMultiple"
@click="isOpenLabelsModal = !isOpenLabelsModal"
>
{{ $t("Set labels") }}
</el-button>
<el-button v-if="canUpdate" :icon="PlayBox" @click="resumeExecutions()">
{{ $t("resume") }}
</el-button>
<el-button v-if="canUpdate" :icon="PauseBox" @click="pauseExecutions()">
{{ $t("pause") }}
</el-button>
<el-button v-if="canUpdate" :icon="QueueFirstInLastOut" @click="unqueueExecutions()">
{{ $t("unqueue") }}
</el-button>
<el-button v-if="canUpdate" :icon="RunFast" @click="forceRunExecutions()">
{{ $t("force run") }}
</el-button>

<!-- Dropdown with additional actions -->
<el-dropdown>
<el-button>
<DotsVertical />
</el-button>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item v-if="canUpdate" :icon="LabelMultiple" @click=" isOpenLabelsModal = !isOpenLabelsModal">
{{ $t("Set labels") }}
</el-dropdown-item>
<el-dropdown-item v-if="canUpdate" :icon="PlayBox" @click="resumeExecutions()">
{{ $t("resume") }}
</el-dropdown-item>
<el-dropdown-item v-if="canUpdate" :icon="PauseBox" @click="pauseExecutions()">
{{ $t("pause") }}
</el-dropdown-item>
<el-dropdown-item v-if="canUpdate" :icon="QueueFirstInLastOut" @click="unqueueExecutions()">
{{ $t("unqueue") }}
</el-dropdown-item>
<el-dropdown-item v-if="canUpdate" :icon="RunFast" @click="forceRunExecutions()">
{{ $t("force run") }}
</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
</bulk-select>
<el-dialog
v-if="isOpenLabelsModal"
Expand Down Expand Up @@ -344,6 +352,7 @@
import SelectTable from "../layout/SelectTable.vue";
import PlayBox from "vue-material-design-icons/PlayBox.vue";
import PlayBoxMultiple from "vue-material-design-icons/PlayBoxMultiple.vue";
import DotsVertical from "vue-material-design-icons/DotsVertical.vue";
import Restart from "vue-material-design-icons/Restart.vue";
import Delete from "vue-material-design-icons/Delete.vue";
import StopCircleOutline from "vue-material-design-icons/StopCircleOutline.vue";
Expand Down
Loading