In a popup when two buttons are coming but as per the requirement you need only one button. Then we can remove the other two buttons by using JQuery.
We have to make some changes in the template by adding extra code for the newly adding button.
<div class="global-views-confirmation-footer {{class}}">
<button class="global-views-confirmation-ok-button" data-action="confirm">
{{#if hasConfirmLabel}}
{{confirmLabel}}
{{else}}
{{translate 'Ok'}}
{{/if}}
</button>
<script>
var url = window.location.hash;
if (url.indexOf("#addressbook") > -1) {
console.log("Inside div", url);
$(document).ready(function(){
$('.global-views-confirmation-cancel-button').addClass('address-cust-popup-cancel');
$('.global-views-confirmation-confirm-button').addClass('address-cust-popup-ok');
$('.global-views-confirmation-confirm-button').addClass('address-cust-popup-removeyes');
});
</script>
Then we have to give display: none for the buttons which needs to removed.
.address-cust-popup-cancel{
display: none;
}
.address-cust-popup-removeyes{
display: none;
}
Before and after removing buttons using Jquery:

