UNPKG

@prefecthq/prefect-ui-library

Version:

This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.

26 lines (25 loc) 828 B
import { defineComponent as p } from "vue"; import { useRouteParam as m, useSubscription as i } from "@prefecthq/vue-compositions"; import { useRouter as n } from "vue-router"; import { b as a, c } from "./index-BD_kIOMy.js"; import "@prefecthq/prefect-design"; import "vee-validate"; import "@prefecthq/vue-charts"; const W = /* @__PURE__ */ p({ __name: "WorkQueueToWorkPoolQueueRedirect", setup(k) { const t = m("workQueueId"), s = a(), u = i(s.workQueues.getWorkQueue, [t]), e = n(), r = c(); return u.promise().then(({ response: o }) => { if (!o.workPoolName) { e.replace(r.workPools()); return; } e.replace(r.workPoolQueue(o.workPoolName, o.name)); }), () => { }; } }); export { W as default }; //# sourceMappingURL=WorkQueueToWorkPoolQueueRedirect-DJZTvjVT.js.map