Skip to content

Commit

Permalink
Hide ORV Feature (#4276)
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-warren authored Sep 17, 2024
1 parent c94ebfd commit 54fde0e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ <h2>Update your BCeID information</h2>

</div>
</section>
<section class="submit-container" style="background-color: #F2F2F2; border: none; color: #000;">
<!-- 2024-09-13: Temporary disabling this until further development work can be completed to support this feature. -->
<!-- <section class="submit-container" style="background-color: #F2F2F2; border: none; color: #000;">
<h2 style="color: #000">Online Retailer Verification:</h2>
<div class="submit-content">
<p>To obtain the Online Retailer Verification button to place on your Website(s),
Expand All @@ -377,7 +378,7 @@ <h2 style="color: #000">Online Retailer Verification:</h2>
<span class="compact-button">Generate ORV Code</span>
</button>
</div>
</section>
</section> -->
<section class="submit-container" style="background-color: #F2F2F2; border: none; color: #000;">
<h2 style="color: #000">Collection Notice:</h2>
<div class="submit-content">
Expand All @@ -396,11 +397,12 @@ <h2 style="color: #000">Collection Notice:</h2>
</div>

<!-- Modal HTML -->
<ng-template #badgeTemplateDialog>
<!-- 2024-09-13: Temporary disabling this until further development work can be completed to support this feature. -->
<!-- <ng-template #badgeTemplateDialog>
<h2 mat-dialog-title class="centered-title">Generate ORV Code</h2>
<p>Paste this code into your website to create your Online Retailer Verification button:</p>
<pre><code>{{generatedOrvCode}}</code></pre>
<div mat-dialog-actions class="center-actions">
<button mat-raised-button color="primary" (click)="onCopy()">Copy</button>
</div>
</ng-template>
</ng-template> -->
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ export class AccountProfileComponent extends FormBase implements OnInit {
renewalType: string;

@ViewChild('badgeTemplateDialog') badgeTemplateDialog: TemplateRef<any>;
generatedOrvCode: string = `<a href="#" onclick="window.open('https://orgbook-app-b7aa30-dev.apps.silver.devops.gov.bc.ca/verify/BC123456', '_blank', 'width=800,height=600'); return false;">Verify Retailer</a>`
// 2024-09-13: Temporary disabling this until further development work can be completed to support this feature.
// generatedOrvCode: string = `<a href="#" onclick="window.open('https://orgbook-app-b7aa30-dev.apps.silver.devops.gov.bc.ca/verify/BC123456', '_blank', 'width=800,height=600'); return false;">Verify Retailer</a>`

get contacts(): FormArray {
return this.form.get("otherContacts") as FormArray;
Expand Down Expand Up @@ -369,13 +370,14 @@ export class AccountProfileComponent extends FormBase implements OnInit {
});
}

onCopy(): void {
this.clipboard.copy(this.generatedOrvCode);
this.snackBar.open('HTML copied to clipboard', null, {
duration: 2000,
});
this.dialog.closeAll();
}
// 2024-09-13: Temporary disabling this until further development work can be completed to support this feature.
// onCopy(): void {
// this.clipboard.copy(this.generatedOrvCode);
// this.snackBar.open('HTML copied to clipboard', null, {
// duration: 2000,
// });
// this.dialog.closeAll();
// }

save(): Observable<boolean> {
const _tiedHouse = this.tiedHouseFormData || {};
Expand Down

0 comments on commit 54fde0e

Please sign in to comment.