Преглед на файлове

fix banner loading (#3263)

* fix banner loading

* small fix
Feroze Mohideen преди 2 години
родител
ревизия
1bb1a2709d
променени са 1 файла, в които са добавени 2 реда и са изтрити 5 реда
  1. 2 5
      dashboard/src/main/home/app-dashboard/expanded-app/ExpandedApp.tsx

+ 2 - 5
dashboard/src/main/home/app-dashboard/expanded-app/ExpandedApp.tsx

@@ -96,8 +96,6 @@ const ExpandedApp: React.FC<Props> = ({ ...props }) => {
     false
     false
   );
   );
 
 
-  const [bannerLoading, setBannerLoading] = useState<boolean>(false);
-
   const [showRevisions, setShowRevisions] = useState<boolean>(false);
   const [showRevisions, setShowRevisions] = useState<boolean>(false);
   const [showDeleteOverlay, setShowDeleteOverlay] = useState<boolean>(false);
   const [showDeleteOverlay, setShowDeleteOverlay] = useState<boolean>(false);
 
 
@@ -140,7 +138,6 @@ const ExpandedApp: React.FC<Props> = ({ ...props }) => {
 
 
   // this method fetches and reconstructs the porter yaml as well as the DB info (stored in PorterApp)
   // this method fetches and reconstructs the porter yaml as well as the DB info (stored in PorterApp)
   const getPorterApp = async ({ revision }: { revision: number }) => {
   const getPorterApp = async ({ revision }: { revision: number }) => {
-    setBannerLoading(true);
     setIsLoading(true);
     setIsLoading(true);
     const { appName } = props.match.params as any;
     const { appName } = props.match.params as any;
     try {
     try {
@@ -869,7 +866,7 @@ const ExpandedApp: React.FC<Props> = ({ ...props }) => {
           ) : (
           ) : (
             <>
             <>
               {!workflowCheckPassed ? (
               {!workflowCheckPassed ? (
-                bannerLoading ? (
+                isLoading ? (
                   <Banner>
                   <Banner>
                     <Loading />
                     <Loading />
                   </Banner>
                   </Banner>
@@ -884,7 +881,7 @@ const ExpandedApp: React.FC<Props> = ({ ...props }) => {
                   />
                   />
                 )
                 )
               ) : !hasBuiltImage ? (
               ) : !hasBuiltImage ? (
-                bannerLoading ? (
+                isLoading ? (
                   <Banner>
                   <Banner>
                     <Loading />
                     <Loading />
                   </Banner>
                   </Banner>