mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
added pageactions to groups and users overview
This commit is contained in:
@@ -5,7 +5,12 @@ import { translate } from "react-i18next";
|
|||||||
import type { Group } from "@scm-manager/ui-types";
|
import type { Group } from "@scm-manager/ui-types";
|
||||||
import type { PagedCollection } from "@scm-manager/ui-types";
|
import type { PagedCollection } from "@scm-manager/ui-types";
|
||||||
import type { History } from "history";
|
import type { History } from "history";
|
||||||
import { Page, Paginator } from "@scm-manager/ui-components";
|
import {
|
||||||
|
Page,
|
||||||
|
PageActions,
|
||||||
|
Button,
|
||||||
|
Paginator
|
||||||
|
} from "@scm-manager/ui-components";
|
||||||
import { GroupTable } from "./../components/table";
|
import { GroupTable } from "./../components/table";
|
||||||
import CreateGroupButton from "../components/buttons/CreateGroupButton";
|
import CreateGroupButton from "../components/buttons/CreateGroupButton";
|
||||||
|
|
||||||
@@ -73,6 +78,13 @@ class Groups extends React.Component<Props> {
|
|||||||
<GroupTable groups={groups} />
|
<GroupTable groups={groups} />
|
||||||
{this.renderPaginator()}
|
{this.renderPaginator()}
|
||||||
{this.renderCreateButton()}
|
{this.renderCreateButton()}
|
||||||
|
<PageActions>
|
||||||
|
<Button
|
||||||
|
label={t("create-group-button.label")}
|
||||||
|
link="/groups/add"
|
||||||
|
color="primary"
|
||||||
|
/>
|
||||||
|
</PageActions>
|
||||||
</Page>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,13 @@ import {
|
|||||||
getFetchUsersFailure
|
getFetchUsersFailure
|
||||||
} from "../modules/users";
|
} from "../modules/users";
|
||||||
|
|
||||||
import { Page, CreateButton, Paginator } from "@scm-manager/ui-components";
|
import {
|
||||||
|
Page,
|
||||||
|
PageActions,
|
||||||
|
Button,
|
||||||
|
CreateButton,
|
||||||
|
Paginator
|
||||||
|
} from "@scm-manager/ui-components";
|
||||||
import { UserTable } from "./../components/table";
|
import { UserTable } from "./../components/table";
|
||||||
import type { User, PagedCollection } from "@scm-manager/ui-types";
|
import type { User, PagedCollection } from "@scm-manager/ui-types";
|
||||||
import { getUsersLink } from "../../modules/indexResource";
|
import { getUsersLink } from "../../modules/indexResource";
|
||||||
@@ -72,6 +78,13 @@ class Users extends React.Component<Props> {
|
|||||||
<UserTable users={users} />
|
<UserTable users={users} />
|
||||||
{this.renderPaginator()}
|
{this.renderPaginator()}
|
||||||
{this.renderCreateButton()}
|
{this.renderCreateButton()}
|
||||||
|
<PageActions>
|
||||||
|
<Button
|
||||||
|
label={t("users.createButton")}
|
||||||
|
link="/users/add"
|
||||||
|
color="primary"
|
||||||
|
/>
|
||||||
|
</PageActions>
|
||||||
</Page>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user