We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48f4705 commit 90d2405Copy full SHA for 90d2405
app/components/version-list/row.hbs
@@ -107,7 +107,7 @@
107
{{/if}}
108
</div>
109
110
- {{#if this.isOwner}}
+ {{#if this.canYank}}
111
<YankButton @version={{@version}} local-class="yank-button" />
112
113
app/components/version-list/row.js
@@ -51,6 +51,10 @@ export default class VersionRow extends Component {
51
return this.args.version.crate?.owner_user?.findBy('id', this.session.currentUser?.id);
52
}
53
54
+ get canYank() {
55
+ return this.isOwner || this.session.currentUser?.is_admin;
56
+ }
57
+
58
@action setFocused(value) {
59
this.focused = value;
60
0 commit comments