forked from tangled.org/core
this repo has no description

appview: issues: fix missing close button

Changed files
+3 -2
appview
pages
templates
repo
issues
+3 -2
appview/pages/templates/repo/issues/issue.html
···
{{ $isIssueAuthor := and .LoggedInUser (eq .LoggedInUser.Did .Issue.OwnerDid) }}
{{ $isRepoCollaborator := .RepoInfo.Roles.IsCollaborator }}
-
{{ if and (or $isIssueAuthor $isRepoCollaborator) (eq .State "open") }}
+
{{ $isRepoOwner := .RepoInfo.Roles.IsOwner }}
+
{{ if and (or $isIssueAuthor $isRepoCollaborator $isRepoOwner) (eq .State "open") }}
<button
id="close-button"
type="button"
···
}
});
</script>
-
{{ else if and (or $isIssueAuthor $isRepoCollaborator) (eq .State "closed") }}
+
{{ else if and (or $isIssueAuthor $isRepoCollaborator $isRepoOwner) (eq .State "closed") }}
<button
type="button"
class="btn flex items-center gap-2"