Markus Johansson
10/08/2024, 6:47 PMUmbModalRouteRegistrationController
but I'm not sure if this is supported? Since these modals would both be routed to /modal/umb-modal-workspace/.....
I'm not sure if this is supported and how I would do it. I've tried adding a ctrlAlias to the ctor, used addAdditionalPath
and addUniquePaths
but without any success.
Anyone that know if this should be supported?Markus Johansson
10/08/2024, 6:55 PMUMB_MY1_MODAL
and UMB_MY2_MODAL
is using Umb.Modal.Workspace
,
This seems to work, here's the code if anyone ever have the same challange 🙂
// routed to /modal/umb-modal-workspace/mod1/....
this.#modalCtrl1 = new UmbModalRouteRegistrationController(this, UMB_MY1_MODAL,'mod1')
.addAdditionalPath('mod1')
.onSetup((routingInfo) => {
...
}
);
// routed to /modal/umb-modal-workspace/mod2/....
this.#modalCtrl2 = new UmbModalRouteRegistrationController(this, UMB_MY2_MODAL,'mod2')
.addAdditionalPath('mod2')
.onSetup((routingInfo) => {
...
}
);