Skip to content

Commit

Permalink
pr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
beastafk committed Sep 23, 2024
1 parent b1b2024 commit a485708
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@ describe("App", () => {
it("renders", async () => {
render(<App />);
await screen.findAllByText("Welcome to Synapse-admin");
// await waitFor(() => {
// expect(screen.getByText("Welcome to Synapse-admin")).toBeInTheDocument();
// }, { timeout: 5000 });
});
});
4 changes: 2 additions & 2 deletions src/i18n/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const ru: SynapseTranslationMessages = {
...russianMessages.ra,
navigation: {
...russianMessages.ra.navigation,
no_filtered_results: "Keine Ergebnisse",
clear_filters: "Alle Filter entfernen",
no_filtered_results: "Нет результатов",
clear_filters: "Все фильтры сбросить",
},
},
synapseadmin: {
Expand Down
2 changes: 2 additions & 0 deletions src/pages/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ const LoginPage = () => {
type="submit"
color="primary"
disabled={loading || !supportPassAuth}
fullWidth
>
{translate("ra.auth.sign_in")}
</Button>
Expand All @@ -304,6 +305,7 @@ const LoginPage = () => {
color="secondary"
onClick={handleSSO}
disabled={loading || ssoBaseUrl === ""}
fullWidth
>
{translate("synapseadmin.auth.sso_sign_in")}
</Button>
Expand Down
1 change: 0 additions & 1 deletion src/synapse/dataProvider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import fetchMock from "jest-fetch-mock";
import dataProvider from "./dataProvider";
import storage from "../storage";


fetchMock.enableMocks();

beforeEach(() => {
Expand Down
1 change: 0 additions & 1 deletion src/synapse/dataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,6 @@ const baseDataProvider: SynapseDataProvider = {
},

update: async (resource, params) => {
console.log("update params " + JSON.stringify(params));
console.log("update " + resource);
const homeserver = storage.getItem("base_url");
if (!homeserver || !(resource in resourceMap)) throw Error("Homeserver not set");
Expand Down

0 comments on commit a485708

Please sign in to comment.