mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #1466 from appwrite/fix-migrations
Update resource for appwrite to appwrite migration
This commit is contained in:
@@ -42,7 +42,7 @@ export const ResourcesFriendly = {
|
||||
file: { singular: 'File', plural: 'Files' },
|
||||
bucket: { singular: 'Bucket', plural: 'Buckets' },
|
||||
function: { singular: 'Function', plural: 'Functions' },
|
||||
'environment variable': { singular: 'Environment Variable', plural: 'Environment Variables' },
|
||||
'environment-variable': { singular: 'Environment Variable', plural: 'Environment Variables' },
|
||||
deployment: { singular: 'Deployment', plural: 'Deployments' },
|
||||
database: { singular: 'Database', plural: 'Databases' },
|
||||
collection: { singular: 'Collection', plural: 'Collections' },
|
||||
@@ -102,7 +102,7 @@ export const migrationFormToResources = (
|
||||
addResource('function');
|
||||
}
|
||||
if (formData.functions.env) {
|
||||
addResource('environment variable');
|
||||
addResource('environment-variable');
|
||||
}
|
||||
if (formData.functions.inactive) {
|
||||
addResource('deployment');
|
||||
@@ -156,7 +156,7 @@ export const resourcesToMigrationForm = (
|
||||
if (resources.includes('function') && isVersionAtLeast(version, '1.4.0')) {
|
||||
formData.functions.root = true;
|
||||
}
|
||||
if (resources.includes('environment variable') && isVersionAtLeast(version, '1.4.0')) {
|
||||
if (resources.includes('environment-variable') && isVersionAtLeast(version, '1.4.0')) {
|
||||
formData.functions.env = true;
|
||||
}
|
||||
if (resources.includes('deployment') && isVersionAtLeast(version, '1.4.0')) {
|
||||
|
||||
@@ -344,7 +344,7 @@
|
||||
<div />
|
||||
<span>Import all functions and their active deployment</span>
|
||||
<ul>
|
||||
{#if resources?.includes('environment variable')}
|
||||
{#if resources?.includes('environment-variable')}
|
||||
<li class="checkbox-field">
|
||||
<input
|
||||
type="checkbox"
|
||||
|
||||
Reference in New Issue
Block a user