mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-25 02:14:38 -05:00
refactor(core): remove usage of unnecessary i18n composable (#13580)
Closes https://github.com/kestra-io/kestra/issues/13351. Co-authored-by: MilosPaunovic <paun992@hotmail.com>
This commit is contained in:
@@ -16,12 +16,12 @@
|
|||||||
/>
|
/>
|
||||||
<div v-else-if="invalidGraph">
|
<div v-else-if="invalidGraph">
|
||||||
<el-alert
|
<el-alert
|
||||||
:title="t('topology-graph.invalid')"
|
:title="$t('topology-graph.invalid')"
|
||||||
type="error"
|
type="error"
|
||||||
class="invalid-graph"
|
class="invalid-graph"
|
||||||
:closable="false"
|
:closable="false"
|
||||||
>
|
>
|
||||||
{{ t('topology-graph.invalid_description') }}
|
{{ $t('topology-graph.invalid_description') }}
|
||||||
</el-alert>
|
</el-alert>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -29,15 +29,12 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {computed, ref} from "vue";
|
import {computed, ref} from "vue";
|
||||||
import {useI18n} from "vue-i18n";
|
|
||||||
import {Utils} from "@kestra-io/ui-libs";
|
import {Utils} from "@kestra-io/ui-libs";
|
||||||
import LowCodeEditor from "./LowCodeEditor.vue";
|
import LowCodeEditor from "./LowCodeEditor.vue";
|
||||||
import {useFlowStore} from "../../stores/flow";
|
import {useFlowStore} from "../../stores/flow";
|
||||||
|
|
||||||
const flowStore = useFlowStore();
|
const flowStore = useFlowStore();
|
||||||
|
|
||||||
const {t} = useI18n();
|
|
||||||
|
|
||||||
const flowYaml = computed(() => flowStore.flowYaml);
|
const flowYaml = computed(() => flowStore.flowYaml);
|
||||||
const flowGraph = computed(() => flowStore.flowGraph);
|
const flowGraph = computed(() => flowStore.flowGraph);
|
||||||
const invalidGraph = computed(() => flowStore.invalidGraph);
|
const invalidGraph = computed(() => flowStore.invalidGraph);
|
||||||
|
|||||||
Reference in New Issue
Block a user