Disabled members list links whilst editing

no issue

- these will eventually toggle selection of individual members when clicked whilst in editing mode
This commit is contained in:
Kevin Ansfield 2020-06-18 11:42:06 +01:00
parent a539e93ea5
commit 6776b8cde7

View File

@ -19,7 +19,7 @@
</div>
{{/if}}
<LinkTo @route="member" @model={{@member}} title="Member details" class="gh-list-data gh-members-list-basic">
<LinkTo @route="member" @model={{@member}} @disabled={{@isEditing}} title="Member details" class="gh-list-data gh-members-list-basic">
<div class="flex items-center">
<GhMemberAvatar @member={{@member}} @containerClass="w9 h9 mr3 flex-shrink-0" />
<div>
@ -31,7 +31,7 @@
</div>
</LinkTo>
<LinkTo @route="member" @model={{@member}} title="Member details" class="gh-list-data gh-members-list-geolocation gh-list-cellwidth-20 middarkgrey f8 {{if (not @member.name) "gh-members-geolocation-noname"}}">
<LinkTo @route="member" @model={{@member}} @disabled={{@isEditing}} title="Member details" class="gh-list-data gh-members-list-geolocation gh-list-cellwidth-20 middarkgrey f8 {{if (not @member.name) "gh-members-geolocation-noname"}}">
{{#if (and @member.geolocation @member.geolocation.country)}}
{{#if (eq @member.geolocation.country_code "US")}}
{{@member.geolocation.region}}, US
@ -43,14 +43,14 @@
{{/if}}
</LinkTo>
<LinkTo @route="member" @model={{@member}} title="Member details" class="gh-list-data gh-members-list-subscribed-at gh-list-cellwidth-20 middarkgrey f8 {{if (not @member.name) "gh-members-subscribed-noname"}}">
<LinkTo @route="member" @model={{@member}} @disabled={{@isEditing}} title="Member details" class="gh-list-data gh-members-list-subscribed-at gh-list-cellwidth-20 middarkgrey f8 {{if (not @member.name) "gh-members-subscribed-noname"}}">
{{#if @member.createdAtUTC}}
{{moment-format @member.createdAtUTC "MMM DD, YYYY"}}
<span class="midlightgrey">({{moment-from-now @member.createdAtUTC}})</span>
{{/if}}
</LinkTo>
<LinkTo @route="member" @model={{@member}} title="Member details" class="gh-list-data gh-list-cellwidth-chevron gh-members-list-chevron">
<LinkTo @route="member" @model={{@member}} @disabled={{@isEditing}} title="Member details" class="gh-list-data gh-list-cellwidth-chevron gh-members-list-chevron">
{{#unless @isEditing}}
<div class="flex items-center justify-end w-100 h-100">
<span class="nr2">{{svg-jar "arrow-right" class="w6 h6 fill-midgrey pa1"}}</span>