mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Revert EditVersionModal.jsx
This commit is contained in:
parent
5c622a9ebf
commit
38ac8fcde5
1 changed files with 3 additions and 2 deletions
|
|
@ -1,9 +1,9 @@
|
||||||
import React, { useState } from 'react';
|
import { useEnvironmentsAndVersionsStore } from '@/_stores/environmentsAndVersionsStore';
|
||||||
import AlertDialog from '@/_ui/AlertDialog';
|
import AlertDialog from '@/_ui/AlertDialog';
|
||||||
|
import React, { useState } from 'react';
|
||||||
import { toast } from 'react-hot-toast';
|
import { toast } from 'react-hot-toast';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { shallow } from 'zustand/shallow';
|
import { shallow } from 'zustand/shallow';
|
||||||
import { useEnvironmentsAndVersionsStore } from '@/_stores/environmentsAndVersionsStore';
|
|
||||||
|
|
||||||
export const EditVersion = ({ appId, setShowEditAppVersion, showEditAppVersion }) => {
|
export const EditVersion = ({ appId, setShowEditAppVersion, showEditAppVersion }) => {
|
||||||
const [isEditingVersion, setIsEditingVersion] = useState(false);
|
const [isEditingVersion, setIsEditingVersion] = useState(false);
|
||||||
|
|
@ -87,6 +87,7 @@ export const EditVersion = ({ appId, setShowEditAppVersion, showEditAppVersion }
|
||||||
{t('globals.cancel', 'Cancel')}
|
{t('globals.cancel', 'Cancel')}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
disabled={!versionName || versionName === editingVersion?.name}
|
||||||
className={`btn btn-primary ${isEditingVersion ? 'btn-loading' : ''}`}
|
className={`btn btn-primary ${isEditingVersion ? 'btn-loading' : ''}`}
|
||||||
data-cy="save-button"
|
data-cy="save-button"
|
||||||
type="submit"
|
type="submit"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue