Skip to content

Commit 509d21b

Browse files
committed
chore: Clear policy input on loading other resource
1 parent 1dfe684 commit 509d21b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

app/controllers/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,12 +522,19 @@ export default class IndexController extends Controller {
522522
this.model.supportedClass?.destroy();
523523
}
524524

525+
clearPolicyInfo() {
526+
this.model.policyURL = '';
527+
this.model.policyContentType = '';
528+
this.model.policyRedirectUrl = '';
529+
}
530+
525531
@action
526532
async loadForm(event) {
527533
event.preventDefault();
528534
document.getElementById('load-btn').disabled = true;
529535
document.getElementById('load-btn').innerText = 'Loading...';
530536

537+
this.clearPolicyInfo();
531538
this.clearForm();
532539

533540
this.form = this.model.loadedFormUri;

0 commit comments

Comments
 (0)