|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
import { User, Clock, Edit, ChevronDown, ChevronUp } from 'lucide-react';
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
import { useState } from 'react';
|
|
|
|
|
import { useEffect, useState } from 'react';
|
|
|
|
|
import { Pod } from 'kubernetes-types/core/v1';
|
|
|
|
|
import { useCurrentStateAndParams } from '@uirouter/react';
|
|
|
|
|
|
|
|
|
@ -60,9 +60,13 @@ export function ApplicationSummaryWidget() {
|
|
|
|
|
application?.metadata?.annotations?.[appNoteAnnotation];
|
|
|
|
|
|
|
|
|
|
const [isNoteOpen, setIsNoteOpen] = useState(true);
|
|
|
|
|
const [applicationNoteFormValues, setApplicationNoteFormValues] = useState(
|
|
|
|
|
applicationNote || ''
|
|
|
|
|
);
|
|
|
|
|
const [applicationNoteFormValues, setApplicationNoteFormValues] =
|
|
|
|
|
useState('');
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
setApplicationNoteFormValues(applicationNote || '');
|
|
|
|
|
}, [applicationNote]);
|
|
|
|
|
|
|
|
|
|
const patchApplicationMutation = usePatchApplicationMutation(
|
|
|
|
|
environmentId,
|
|
|
|
|
namespace,
|
|
|
|
|