Skip to content

Commit

Permalink
Update @prefecthq/prefect-ui-library to version 3.5.5 (#14757)
Browse files Browse the repository at this point in the history
Co-authored-by: marvin-robot <[email protected]>
Co-authored-by: Craig Harshbarger <[email protected]>
  • Loading branch information
3 people authored Jul 25, 2024
1 parent 87eb13c commit 251296d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@prefecthq/prefect-design": "2.11.6",
"@prefecthq/prefect-ui-library": "3.5.3",
"@prefecthq/prefect-ui-library": "3.5.5",
"@prefecthq/vue-charts": "2.0.4",
"@prefecthq/vue-compositions": "1.11.4",
"@types/lodash.debounce": "4.0.9",
Expand Down
6 changes: 3 additions & 3 deletions ui/src/pages/DeploymentDuplicate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<PageHeadingDeploymentDuplicate :deployment="deployment" />
</template>

<DeploymentFormV2 :deployment="deployment" @cancel="cancel" mode="duplicate" @submit="submit" />
<DeploymentForm :deployment="deployment" mode="duplicate" @cancel="cancel" @submit="submit" />
</p-layout-default>
</template>

<script lang="ts" setup>
import { showToast } from '@prefecthq/prefect-design'
import { PageHeadingDeploymentDuplicate, useWorkspaceApi, getApiErrorMessage, DeploymentFormV2, DeploymentCreate, DeploymentUpdateV2 } from '@prefecthq/prefect-ui-library'
import { PageHeadingDeploymentDuplicate, useWorkspaceApi, getApiErrorMessage, DeploymentForm, DeploymentCreate, DeploymentUpdateV2 } from '@prefecthq/prefect-ui-library'
import { useSubscription, useRouteParam } from '@prefecthq/vue-compositions'
import { computed } from 'vue'
import { usePageTitle } from '@/compositions/usePageTitle'
Expand All @@ -31,7 +31,7 @@
if (!isDeploymentCreate(request)) {
throw new Error('Invalid request')
}
const newDeployment = await api.deployments.createDeployement(request)
const newDeployment = await api.deployments.createDeployment(request)
showToast('Deployment created', 'success')
router.push(routes.deployment(newDeployment.id))
} catch (error) {
Expand Down
4 changes: 2 additions & 2 deletions ui/src/pages/DeploymentEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<PageHeadingDeploymentEdit :deployment="deployment" />
</template>

<DeploymentFormV2 :deployment="deployment" @cancel="cancel" @submit="submit" />
<DeploymentForm :deployment="deployment" @cancel="cancel" @submit="submit" />
</p-layout-default>
</template>

<script lang="ts" setup>
import { showToast } from '@prefecthq/prefect-design'
import { PageHeadingDeploymentEdit, useWorkspaceApi, DeploymentUpdateV2, getApiErrorMessage, DeploymentFormV2 } from '@prefecthq/prefect-ui-library'
import { PageHeadingDeploymentEdit, useWorkspaceApi, DeploymentUpdateV2, getApiErrorMessage, DeploymentForm } from '@prefecthq/prefect-ui-library'
import { useSubscription, useRouteParam } from '@prefecthq/vue-compositions'
import { computed } from 'vue'
import { usePageTitle } from '@/compositions/usePageTitle'
Expand Down
8 changes: 4 additions & 4 deletions ui/src/pages/FlowRunCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<PageHeadingFlowRunCreate :deployment="deployment" />
</template>

<FlowRunCreateFormV2 :deployment :parameters :disabled @submit="createFlowRun" @cancel="goBack" />
<FlowRunCreateForm :deployment :parameters :disabled @submit="createFlowRun" @cancel="goBack" />
</p-layout-default>
</template>

<script lang="ts" setup>
import { showToast } from '@prefecthq/prefect-design'
import { PageHeadingFlowRunCreate, ToastFlowRunCreate, useWorkspaceApi, useDeployment, FlowRunCreateFormV2, DeploymentFlowRunCreateV2, getApiErrorMessage } from '@prefecthq/prefect-ui-library'
import { PageHeadingFlowRunCreate, ToastFlowRunCreate, useWorkspaceApi, useDeployment, FlowRunCreateForm, DeploymentFlowRunCreate, getApiErrorMessage } from '@prefecthq/prefect-ui-library'
import { useRouteParam, useRouteQueryParam } from '@prefecthq/vue-compositions'
import { computed, h, ref } from 'vue'
import { useRouter } from 'vue-router'
Expand All @@ -25,14 +25,14 @@
const { deployment } = useDeployment(deploymentId)
const disabled = ref(false)
const createFlowRun = async (request: DeploymentFlowRunCreateV2): Promise<void> => {
const createFlowRun = async (request: DeploymentFlowRunCreate): Promise<void> => {
if (disabled.value) {
return
}
try {
disabled.value = true
const flowRun = await api.deployments.createDeploymentFlowRunV2(deploymentId.value, request)
const flowRun = await api.deployments.createDeploymentFlowRun(deploymentId.value, request)
const startTime = request.state?.stateDetails?.scheduledTime ?? undefined
const immediate = !startTime
const toastMessage = h(ToastFlowRunCreate, { flowRun, flowRunRoute: routes.flowRun, router, immediate, startTime })
Expand Down

0 comments on commit 251296d

Please sign in to comment.