Revert "Hide buttons for Fabric or when no write access (#1742)" (#1751)

This reverts commit f403b086ad.
This commit is contained in:
Laurent Nguyen
2024-02-21 16:22:17 +00:00
committed by GitHub
parent 9cebe5f9ba
commit 12366bb645
4 changed files with 2 additions and 9 deletions

View File

@@ -1,7 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable no-console */
import { FeedOptions, QueryOperationOptions } from "@azure/cosmos";
import { Platform, configContext } from "ConfigContext";
import { useDialog } from "Explorer/Controls/Dialog";
import { QueryCopilotFeedbackModal } from "Explorer/QueryCopilot/Modal/QueryCopilotFeedbackModal";
import { useCopilotStore } from "Explorer/QueryCopilot/QueryCopilotContext";
@@ -403,7 +402,7 @@ export default class QueryTabComponent extends React.Component<IQueryTabComponen
});
}
if (this.saveQueryButton.visible && configContext.platform !== Platform.Fabric) {
if (this.saveQueryButton.visible) {
const label = "Save Query";
buttons.push({
iconSrc: SaveQueryIcon,