+3
-2
appview/pages/templates/repo/issues/issue.html
+3
-2
appview/pages/templates/repo/issues/issue.html
···
99
99
100
100
{{ $isIssueAuthor := and .LoggedInUser (eq .LoggedInUser.Did .Issue.OwnerDid) }}
101
101
{{ $isRepoCollaborator := .RepoInfo.Roles.IsCollaborator }}
102
-
{{ if and (or $isIssueAuthor $isRepoCollaborator) (eq .State "open") }}
102
+
{{ $isRepoOwner := .RepoInfo.Roles.IsOwner }}
103
+
{{ if and (or $isIssueAuthor $isRepoCollaborator $isRepoOwner) (eq .State "open") }}
103
104
<button
104
105
id="close-button"
105
106
type="button"
···
145
146
}
146
147
});
147
148
</script>
148
-
{{ else if and (or $isIssueAuthor $isRepoCollaborator) (eq .State "closed") }}
149
+
{{ else if and (or $isIssueAuthor $isRepoCollaborator $isRepoOwner) (eq .State "closed") }}
149
150
<button
150
151
type="button"
151
152
class="btn flex items-center gap-2"