UNPKG

@scalar/api-client

Version:

the open source API testing client

54 lines (53 loc) 1.66 kB
import { defineComponent as m, createBlock as u, openBlock as f, unref as n, withCtx as o, createElementVNode as a, createVNode as l, createTextVNode as i } from "vue"; import { ScalarModal as p, ScalarButton as r } from "@scalar/components"; const x = { class: "flex justify-between" }, k = /* @__PURE__ */ m({ __name: "EnvironmentDeleteModal", props: { state: {}, name: { default: "unknown" } }, emits: ["cancel", "submit"], setup(b, { emit: d }) { const s = d; return (t, e) => (f(), u(n(p), { bodyClass: "border-t-0 rounded-t-lg flex flex-col gap-4", size: "xxs", state: t.state, title: `Delete ${t.name}` }, { default: o(() => [ e[4] || (e[4] = a("p", { class: "text-c-2 text-sm leading-normal text-pretty" }, " Are you sure you want to delete this environment? This action cannot be undone. ", -1)), a("div", x, [ l(n(r), { size: "sm", variant: "outlined", onClick: e[0] || (e[0] = () => { s("cancel"), t.state.hide(); }) }, { default: o(() => [...e[2] || (e[2] = [ i(" Cancel ", -1) ])]), _: 1 }), l(n(r), { size: "sm", variant: "danger", onClick: e[1] || (e[1] = () => { s("submit"), t.state.hide(); }) }, { default: o(() => [...e[3] || (e[3] = [ i(" Delete Environment ", -1) ])]), _: 1 }) ]) ]), _: 1 }, 8, ["state", "title"])); } }); export { k as default };