Skip to content

Commit

Permalink
removed pencil for admin while viewing addon configured by other user
Browse files Browse the repository at this point in the history
  • Loading branch information
opaduchak committed Dec 28, 2024
1 parent 0a3ddf8 commit d96f0fe
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions app/guid-node/addons/index/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,17 @@
>
{{configuredAddon.displayName}}
<span local-class='float-right'>
<Button
data-test-edit-connected-location={{configuredAddon.displayName}}
data-analytics-name='Edit connected location'
local-class='edit-connected-button'
aria-label={{t 'addons.list.edit-location' displayName=configuredAddon.displayName}}
{{on 'click' (fn manager.configureProvider manager.selectedProvider configuredAddon)}}
>
<FaIcon @icon='pencil-alt' />
</Button>
{{#if configuredAddon.currentUserIsOwner}}
<Button
data-test-edit-connected-location={{configuredAddon.displayName}}
data-analytics-name='Edit connected location'
local-class='edit-connected-button'
aria-label={{t 'addons.list.edit-location' displayName=configuredAddon.displayName}}
{{on 'click' (fn manager.configureProvider manager.selectedProvider configuredAddon)}}
>
<FaIcon @icon='pencil-alt' />
</Button>
{{/if}}
<Button
data-test-remove-connected-location={{configuredAddon.displayName}}
data-analytics-name='Remove connected location'
Expand Down

0 comments on commit d96f0fe

Please sign in to comment.