Unverified Commit ddea44e2 authored by Ahmed Awan's avatar Ahmed Awan Committed by mvdbeek
Browse files

add loading span for loading workflow

parent adb0df00
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ import { copyWorkflow } from "./workflows.services";

import AsyncButton from "../Common/AsyncButton.vue";
import ButtonSpinner from "../Common/ButtonSpinner.vue";
import LoadingSpan from "../LoadingSpan.vue";
import WorkflowRunButton from "./WorkflowRunButton.vue";

interface Props {
@@ -36,7 +37,7 @@ const emit = defineEmits<{
    (e: "on-execute"): void;
}>();

const { workflow, error } = useWorkflowInstance(props.workflowId);
const { workflow, loading, error } = useWorkflowInstance(props.workflowId);

const { currentUser, isAnonymous } = storeToRefs(useUserStore());
const owned = computed(() => {
@@ -163,6 +164,9 @@ const workflowImportTitle = computed(() => {
                Successfully invoked workflow
                <b>{{ getWorkflowName() }}</b>
            </div>
            <BAlert v-else-if="loading" variant="info" show>
                <LoadingSpan message="Loading workflow details" />
            </BAlert>
        </div>
    </div>
</template>