mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 02:53:43 +03:00
Hide the "resend confirmation" button on draft pledges
The confirmation hasn't been sent in the first place, so this button is misleading
This commit is contained in:
parent
d0dc2f0a14
commit
531e71a552
|
@ -52,6 +52,10 @@
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pledge-contributors.pledge-status__draft .resend-confirm {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.contributor-list th,
|
.contributor-list th,
|
||||||
.contributor-list td,
|
.contributor-list td,
|
||||||
.contributor-list th *,
|
.contributor-list th *,
|
||||||
|
|
|
@ -26,7 +26,7 @@ use function WordPressDotOrg\FiveForTheFuture\get_views_path;
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col"><?php esc_html_e( 'Contributor', 'wporg-5ftf' ); ?></th>
|
<th scope="col"><?php esc_html_e( 'Contributor', 'wporg-5ftf' ); ?></th>
|
||||||
<th scope="col"><?php esc_html_e( 'Resend Confirmation', 'wporg-5ftf' ); ?></th>
|
<th scope="col" class="resend-confirm"><?php esc_html_e( 'Resend Confirmation', 'wporg-5ftf' ); ?></th>
|
||||||
<th scope="col"><?php esc_html_e( 'Remove Contributor', 'wporg-5ftf' ); ?></th>
|
<th scope="col"><?php esc_html_e( 'Remove Contributor', 'wporg-5ftf' ); ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -47,7 +47,7 @@ use function WordPressDotOrg\FiveForTheFuture\get_views_path;
|
||||||
</span>
|
</span>
|
||||||
</th>
|
</th>
|
||||||
<# if ( 'pending' === data.status ) { #>
|
<# if ( 'pending' === data.status ) { #>
|
||||||
<td>
|
<td class="resend-confirm">
|
||||||
<button
|
<button
|
||||||
class="button"
|
class="button"
|
||||||
data-action="resend-contributor-confirmation"
|
data-action="resend-contributor-confirmation"
|
||||||
|
@ -75,7 +75,7 @@ use function WordPressDotOrg\FiveForTheFuture\get_views_path;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="5ftf-contributors">
|
<div id="5ftf-contributors">
|
||||||
<div class="pledge-contributors">
|
<div class="pledge-contributors pledge-status__<?php echo esc_attr( get_post_status() ); ?>">
|
||||||
<?php if ( ! empty( $contributors ) ) : ?>
|
<?php if ( ! empty( $contributors ) ) : ?>
|
||||||
<?php
|
<?php
|
||||||
printf(
|
printf(
|
||||||
|
|
Loading…
Reference in a new issue