Skip to content

Commit

Permalink
feat: added saved sucessfully message
Browse files Browse the repository at this point in the history
  • Loading branch information
AdiGajbhiye committed Nov 27, 2024
1 parent a1572ac commit d8ce150
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const DocumentationPropagationButton = ({
const [allColumns, setAllColumns] = useState<DocsItem[]>([]);
const [currColumns, setCurrColumns] = useState<DocsItem[]>([]);
const [isLoading, setIsLoading] = useState(false);
const [isSaved, setIsSaved] = useState(false);
const [tableMetadata, setTableMetadata] = useState<TableMetadata[]>([]);
const [testsMetadata, setTestsMetadata] = useState<Record<string, unknown>>(
{},
Expand All @@ -72,6 +73,7 @@ export const DocumentationPropagationButton = ({
setAllColumns([]);
setCurrColumns(startColumn);
setTableMetadata([]);
setIsSaved(false);
}, [currentDocsData?.uniqueId, name]);

const loadMoreDownstreamModels = async () => {
Expand Down Expand Up @@ -165,6 +167,7 @@ export const DocumentationPropagationButton = ({
}

await executeRequestInSync("saveDocumentationBulk", { models: req });
setIsSaved(true);
};

const setAllColumnsValue = (value: boolean) => {
Expand Down Expand Up @@ -278,6 +281,7 @@ export const DocumentationPropagationButton = ({
>
Propagate documentation to selected models
</Button>
{isSaved && <div>Saved documentation successfully</div>}
</Stack>
</>
)}
Expand Down

0 comments on commit d8ce150

Please sign in to comment.