Skip to content

Commit e6f280c

Browse files
committed
FEATURE: add ui button to cancel running release
1 parent 1137b37 commit e6f280c

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

Classes/Controller/BackendController.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,4 +172,12 @@ public function pruneContentStoreAction(string $redisInstanceIdentifier)
172172

173173
$this->redirect('index', null, null, ['contentStore' => $redisInstanceIdentifier->getIdentifier()]);
174174
}
175+
176+
public function cancelRunningReleaseAction(string $redisInstanceIdentifier)
177+
{
178+
$redisInstanceIdentifier = RedisInstanceIdentifier::fromString($redisInstanceIdentifier);
179+
$this->contentReleaseManager->cancelAllRunningContentReleases();
180+
181+
$this->redirect('index', null, null, ['contentStore' => $redisInstanceIdentifier->getIdentifier()]);
182+
}
175183
}

Resources/Private/BackendFusion/Integration/Backend.Index.fusion

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ Flowpack.DecoupledContentStore.BackendController.index = Neos.Fusion:Component {
1313
redisInstanceIdentifier = ${contentStore}
1414
}
1515
}
16+
_cancelRunningReleaseUri = Neos.Fusion:UriBuilder {
17+
action = 'cancelRunningRelease'
18+
arguments = Neos.Fusion:DataStructure {
19+
redisInstanceIdentifier = ${contentStore}
20+
}
21+
}
1622

1723
_renderedTableBody = Neos.Fusion:Loop {
1824
items = ${overviewData}
@@ -91,6 +97,11 @@ Flowpack.DecoupledContentStore.BackendController.index = Neos.Fusion:Component {
9197
<button form="postHelper" formaction={props._pruneContentStoreUri} type="submit" class="neos-button neos-button-danger" style="margin-top: 300px;">
9298
Prune content store
9399
</button>
100+
<span> </span>
101+
<Neos.Fusion:Debug.Console value={"URI" + props._cancelRunningReleaseUri} />
102+
<button form="postHelper" formaction={props._cancelRunningReleaseUri} type="submit" class="neos-button neos-button-danger" style="margin-top: 300px;">
103+
Cancel running release
104+
</button>
94105

95106
<Flowpack.DecoupledContentStore:ListFooter />
96107
</div>

0 commit comments

Comments
 (0)