cordo 2.9.1 → 2.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -52,7 +52,8 @@ export function button() {
|
|
|
52
52
|
},
|
|
53
53
|
disabled(disabled = true, opts?: { greyOut?: boolean }) {
|
|
54
54
|
disabledVal = disabled
|
|
55
|
-
if (opts?.greyOut)
|
|
55
|
+
if (disabled && opts?.greyOut)
|
|
56
|
+
styleVal = ButtonStyle.Secondary
|
|
56
57
|
return out
|
|
57
58
|
},
|
|
58
59
|
onClick: (...funct: CordoFunctRun) => {
|
|
@@ -92,7 +92,8 @@ export async function evalRun(path: string, flags: number, i: CordoInteraction):
|
|
|
92
92
|
CordoGateway.respondTo(i, null) // we'll ack this so that any rendering done further down does not spill into the new error message
|
|
93
93
|
|
|
94
94
|
const currentRoute = CordoMagic.getCwd()
|
|
95
|
-
const
|
|
95
|
+
const currentRouteId = RoutingResolve.getRouteFromPath(currentRoute, false)?.routeId
|
|
96
|
+
const parsedRoute = currentRouteId ? RoutingResolve.getRouteFromId(currentRouteId) : null
|
|
96
97
|
if (parsedRoute) {
|
|
97
98
|
const request = RoutingRespond.buildRouteRequest(parsedRoute, route.args, i, opts)
|
|
98
99
|
if (request) {
|