Skip to content

Commit 5137b99

Browse files
committed
✨ feat(ui): add rollback shortcut to container actions menu
1 parent b594d96 commit 5137b99

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

ui/src/components/containers/ContainersGroupedViews.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const {
2828
selectedContainer,
2929
isCompact,
3030
selectContainer,
31+
activeDetailTab,
3132
tableActionStyle,
3233
openActionsMenu,
3334
toggleActionsMenu,
@@ -753,6 +754,12 @@ function getContainerStatusIconStyle(container: { id?: unknown; name?: unknown;
753754
</AppButton>
754755
</template>
755756
<div class="my-1" :style="{ borderTop: '1px solid var(--dd-border)' }" />
757+
<AppButton size="md" variant="plain" weight="medium" class="w-full text-left flex items-center gap-2 dd-text"
758+
@click="selectContainer(openActionsContainer!); activeDetailTab = 'actions'; closeActionsMenu()">
759+
<AppIcon name="recent-updates" :size="12" class="w-3 text-center inline-flex justify-center dd-text-muted" />
760+
Rollback
761+
</AppButton>
762+
<div class="my-1" :style="{ borderTop: '1px solid var(--dd-border)' }" />
756763
<AppButton size="md" variant="plain" weight="medium" class="w-full text-left flex items-center gap-2" style="color: var(--dd-danger);"
757764
@click="confirmDelete(openActionsContainer); closeActionsMenu()">
758765
<AppIcon name="trash" :size="12" class="w-3 text-center inline-flex justify-center" />

0 commit comments

Comments
 (0)