Merged 2.0.0-m3

This commit is contained in:
Philipp Czora
2019-02-26 11:05:17 +01:00
6 changed files with 47 additions and 38 deletions

View File

@@ -98,10 +98,6 @@ def callback(ui, repo, hooktype, node=None):
return abort return abort
def preHook(ui, repo, hooktype, node=None, source=None, pending=None, **kwargs): def preHook(ui, repo, hooktype, node=None, source=None, pending=None, **kwargs):
log_file = open("/tmp/hg_callback.log", "a")
log_file.write("in callHookUrl\n")
log_file.close()
# older mercurial versions # older mercurial versions
if pending != None: if pending != None:
pending() pending()

View File

@@ -78,13 +78,6 @@ 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>
); );
} }
@@ -99,7 +92,18 @@ class Groups extends React.Component<Props> {
renderCreateButton() { renderCreateButton() {
if (this.props.canAddGroups) { if (this.props.canAddGroups) {
return <CreateGroupButton />; return (
<>
<CreateGroupButton />
<PageActions>
<Button
label={this.props.t("create-group-button.label")}
link="/groups/add"
color="primary"
/>
</PageActions>
</>
);
} else { } else {
return; return;
} }

View File

@@ -73,13 +73,6 @@ class Overview extends React.Component<Props> {
error={error} error={error}
> >
{this.renderList()} {this.renderList()}
<PageActions>
<Button
label={t("overview.createButton")}
link="/repos/create"
color="primary"
/>
</PageActions>
</Page> </Page>
); );
} }
@@ -102,7 +95,19 @@ class Overview extends React.Component<Props> {
const { showCreateButton, t } = this.props; const { showCreateButton, t } = this.props;
if (showCreateButton) { if (showCreateButton) {
return ( return (
<CreateButton label={t("overview.createButton")} link="/repos/create" /> <>
<CreateButton
label={t("overview.createButton")}
link="/repos/create"
/>
<PageActions>
<Button
label={t("overview.createButton")}
link="/repos/create"
color="primary"
/>
</PageActions>
</>
); );
} }
return null; return null;

View File

@@ -78,13 +78,6 @@ 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>
); );
} }
@@ -100,7 +93,18 @@ class Users extends React.Component<Props> {
renderCreateButton() { renderCreateButton() {
const { t } = this.props; const { t } = this.props;
if (this.props.canAddUsers) { if (this.props.canAddUsers) {
return <CreateButton label={t("users.createButton")} link="/users/add" />; return (
<>
<CreateButton label={t("users.createButton")} link="/users/add" />
<PageActions>
<Button
label={t("users.createButton")}
link="/users/add"
color="primary"
/>
</PageActions>
</>
);
} else { } else {
return; return;
} }

View File

@@ -55,15 +55,15 @@
"verbs": { "verbs": {
"repository": { "repository": {
"read": { "read": {
"displayName": "Lesen", "displayName": "Repository Lesen",
"description": "Darf das Repository im SCM-Manager sehen." "description": "Darf das Repository im SCM-Manager sehen."
}, },
"modify": { "modify": {
"displayName": "Modifizieren", "displayName": "Repository Modifizieren",
"description": "Darf die Eigenschaften des Repository verändern." "description": "Darf die Eigenschaften des Repository verändern."
}, },
"delete": { "delete": {
"displayName": "Löschen", "displayName": "Repository Löschen",
"description": "Darf das Repository löschen." "description": "Darf das Repository löschen."
}, },
"pull": { "pull": {

View File

@@ -55,23 +55,23 @@
"verbs": { "verbs": {
"repository": { "repository": {
"read": { "read": {
"displayName": "read", "displayName": "read repository",
"description": "May see the repository inside the SCM-Manager" "description": "May see the repository inside the SCM-Manager"
}, },
"modify": { "modify": {
"displayName": "modify", "displayName": "modify repository metadata",
"description": "May modify the properties of the repository" "description": "May modify the basic properties of the repository"
}, },
"delete": { "delete": {
"displayName": "delete", "displayName": "delete repository",
"description": "May delete the repository" "description": "May delete the repository"
}, },
"pull": { "pull": {
"displayName": "pull/checkout", "displayName": "pull/checkout repository",
"description": "May pull/checkout the repository" "description": "May pull/checkout the repository"
}, },
"push": { "push": {
"displayName": "push/commit", "displayName": "push/commit repository",
"description": "May change the content of the repository (push/commit)" "description": "May change the content of the repository (push/commit)"
}, },
"permissionRead": { "permissionRead": {
@@ -83,7 +83,7 @@
"description": "May modify the permissions of the repository" "description": "May modify the permissions of the repository"
}, },
"*": { "*": {
"displayName": "overall", "displayName": "own repository",
"description": "May change everything for the repository (includes all other permissions)" "description": "May change everything for the repository (includes all other permissions)"
} }
} }