Skip to content

Commit

Permalink
Open rename workflow text field in focus mode (#3007)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiewaese-uncharted authored Mar 13, 2024
1 parent 9caa24d commit 7d88813
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions packages/client/hmi-client/src/workflow/tera-workflow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,19 @@
<template #foreground>
<div class="toolbar glass">
<div class="button-group w-full">
<InputText
v-if="isRenamingWorkflow"
class="p-inputtext w-full mr-8"
v-model.lazy="newWorkflowName"
placeholder="Workflow name"
@keyup.enter="updateWorkflowName"
@keyup.esc="updateWorkflowName"
/>
<div v-if="isRenamingWorkflow" class="rename-workflow w-full">
<InputText
class="p-inputtext w-full"
v-model.lazy="newWorkflowName"
placeholder="Workflow name"
@keyup.enter="updateWorkflowName"
@keyup.esc="updateWorkflowName"
v-focus
/>
<div class="flex flex-nowrap ml-1 mr-3">
<Button icon="pi pi-check" rounded text @click="updateWorkflowName" />
</div>
</div>
<h4 v-else>{{ wf.name }}</h4>
<Button
v-if="!isRenamingWorkflow"
Expand Down Expand Up @@ -911,4 +916,10 @@ function resetZoom() {
flex-direction: row;
gap: var(--gap-small);
}
.rename-workflow {
display: flex;
align-items: center;
flex-wrap: nowrap;
}
</style>

0 comments on commit 7d88813

Please sign in to comment.