2023-04-19 07:01:32 -07:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { i18n as locale } from '@/plugins/i18n';
|
2023-04-21 02:25:39 -07:00
|
|
|
import { useVersionControlStore } from '@/stores/versionControl';
|
|
|
|
import { useUIStore } from '@/stores/ui';
|
|
|
|
|
|
|
|
const versionControlStore = useVersionControlStore();
|
|
|
|
const uiStore = useUIStore();
|
|
|
|
|
|
|
|
const goToUpgrade = () => {
|
|
|
|
uiStore.goToUpgrade('version-control', 'upgrade-version-control');
|
|
|
|
};
|
2023-04-19 07:01:32 -07:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<n8n-heading size="2xlarge">{{ locale.baseText('settings.versionControl.title') }}</n8n-heading>
|
2023-04-21 02:25:39 -07:00
|
|
|
<div
|
|
|
|
v-if="versionControlStore.isEnterpriseVersionControlEnabled"
|
|
|
|
data-test-id="version-control-content-licensed"
|
|
|
|
></div>
|
|
|
|
<n8n-action-box
|
|
|
|
v-else
|
|
|
|
data-test-id="version-control-content-unlicensed"
|
|
|
|
:class="$style.actionBox"
|
|
|
|
:description="locale.baseText('settings.versionControl.actionBox.description')"
|
|
|
|
:buttonText="locale.baseText('settings.versionControl.actionBox.buttonText')"
|
|
|
|
@click="goToUpgrade"
|
|
|
|
>
|
|
|
|
<template #heading>
|
|
|
|
<span>{{ locale.baseText('settings.versionControl.actionBox.title') }}</span>
|
|
|
|
</template>
|
|
|
|
</n8n-action-box>
|
2023-04-19 07:01:32 -07:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2023-04-21 02:25:39 -07:00
|
|
|
<style lang="scss" module>
|
|
|
|
.actionBox {
|
|
|
|
margin: var(--spacing-2xl) 0 0;
|
|
|
|
}
|
|
|
|
</style>
|