mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 07:28:21 +00:00
Make commit message optional
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ const CommitItem = ({
|
||||
<div className="flex gap-2 px-4 py-3 transition-colors duration-200 hover:bg-zinc-800">
|
||||
<div className="flex min-w-0 flex-1 flex-col items-start">
|
||||
<p className="block w-full truncate text-left text-sm text-mineshaft-100">
|
||||
{commit.message}
|
||||
{commit.message || <span className="text-mineshaft-400 italic">No message</span>}
|
||||
</p>
|
||||
<p className="text-left text-xs text-mineshaft-300">
|
||||
{commit.actorMetadata?.email || commit.actorMetadata?.name || commit.actorType}{" "}
|
||||
|
||||
+2
-6
@@ -293,9 +293,6 @@ export const CommitForm: React.FC<CommitFormProps> = ({
|
||||
}
|
||||
|
||||
const handleCommit = async () => {
|
||||
if (!commitMessage.trim()) {
|
||||
return;
|
||||
}
|
||||
await onCommit(pendingChanges, commitMessage);
|
||||
clearAllPendingChanges({
|
||||
projectId,
|
||||
@@ -432,7 +429,7 @@ export const CommitForm: React.FC<CommitFormProps> = ({
|
||||
{/* Commit Message */}
|
||||
<div>
|
||||
<label className="mb-2 block text-sm font-medium text-mineshaft-200">
|
||||
Commit Message <span className="text-red-400">*</span>
|
||||
Commit Message
|
||||
</label>
|
||||
<Input
|
||||
value={commitMessage}
|
||||
@@ -440,7 +437,6 @@ export const CommitForm: React.FC<CommitFormProps> = ({
|
||||
placeholder="Describe your changes..."
|
||||
className="w-full"
|
||||
autoFocus
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -457,7 +453,7 @@ export const CommitForm: React.FC<CommitFormProps> = ({
|
||||
<Button
|
||||
onClick={handleCommit}
|
||||
isLoading={isCommitting}
|
||||
isDisabled={isCommitting || !commitMessage.trim()}
|
||||
isDisabled={isCommitting}
|
||||
leftIcon={<FontAwesomeIcon icon={faCodeCommit} />}
|
||||
colorSchema="primary"
|
||||
variant="outline_bg"
|
||||
|
||||
Reference in New Issue
Block a user