Skip to content

Commit

Permalink
Revert "[artemiscloud#293] Overhaul the integration of the broker edi…
Browse files Browse the repository at this point in the history
…tion form within OpenShift"

This reverts commit f13f127.
  • Loading branch information
lavocatt committed Oct 30, 2024
1 parent 5226e42 commit b8294e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
6 changes: 2 additions & 4 deletions console-extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@
{
"type": "console.page/route",
"properties": {
"exact": false,
"exact": true,
"path": [
"/k8s/ns/:ns/edit-broker/:name",
"/k8s/all-namespaces/edit-broker/:name",
"/k8s/ns/:ns/broker.amq.io~v1beta1~ActiveMQArtemis/:name",
"/k8s/ns/:ns/clusterserviceversions/:operator/broker.amq.io~v1beta1~ActiveMQArtemis/:name"
"/k8s/all-namespaces/edit-broker/:name"
],
"component": { "$codeRef": "UpdateBrokerContainer.UpdateBrokerPage" }
}
Expand Down
9 changes: 2 additions & 7 deletions src/brokers/update-broker/UpdateBroker.container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@ export const UpdateBrokerPage: FC = () => {
const [hasBrokerUpdated, setHasBrokerUpdated] = useState(false);
const [alert, setAlert] = useState('');
const params = new URLSearchParams(location.search);
const returnUrl = params.get('returnUrl');
const returnUrl = params.get('returnUrl') || '/k8s/all-namespaces/brokers';
const handleRedirect = () => {
if (returnUrl) {
navigate(returnUrl);
} else {
navigate(-1);
}
navigate(returnUrl);
};

const k8sUpdateBroker = (content: BrokerCR) => {
k8sUpdate({
model: AMQBrokerModel,
Expand Down

0 comments on commit b8294e7

Please sign in to comment.