fix: Slack integration should not display if not configured in self hosted
fix: Alignment of Slack channels in settings closes #2553
This commit is contained in:
@@ -14,6 +14,9 @@ import Slack from "scenes/Settings/Slack";
|
||||
import Tokens from "scenes/Settings/Tokens";
|
||||
import Zapier from "scenes/Settings/Zapier";
|
||||
import Route from "components/ProfiledRoute";
|
||||
import env from "env";
|
||||
|
||||
const isHosted = env.DEPLOYMENT === "hosted";
|
||||
|
||||
export default function SettingsRoutes() {
|
||||
return (
|
||||
@@ -27,8 +30,12 @@ export default function SettingsRoutes() {
|
||||
<Route exact path="/settings/shares" component={Shares} />
|
||||
<Route exact path="/settings/tokens" component={Tokens} />
|
||||
<Route exact path="/settings/notifications" component={Notifications} />
|
||||
<Route exact path="/settings/integrations/slack" component={Slack} />
|
||||
<Route exact path="/settings/integrations/zapier" component={Zapier} />
|
||||
{env.SLACK_KEY && (
|
||||
<Route exact path="/settings/integrations/slack" component={Slack} />
|
||||
)}
|
||||
{isHosted && (
|
||||
<Route exact path="/settings/integrations/zapier" component={Zapier} />
|
||||
)}
|
||||
<Route exact path="/settings/import-export" component={ImportExport} />
|
||||
<Redirect from="/settings/people" to="/settings/members" />
|
||||
</Switch>
|
||||
|
||||
Reference in New Issue
Block a user