Skip to content

Commit

Permalink
refactor(foxy-webhook-form): hide delete button for logs and statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
pheekus committed Oct 29, 2024
1 parent bca9823 commit c4e291f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/elements/public/WebhookForm/WebhookForm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ describe('WebhookForm', () => {

expect(control).to.exist;
expect(control).to.be.instanceOf(InternalAsyncListControl);
expect(control).to.have.attribute('hide-delete-button');
expect(control).to.have.property('item', 'foxy-webhook-status-card');
expect(control).to.have.property('getPageHref', getPageHref);
expect(control).to.have.property(
Expand Down Expand Up @@ -247,6 +248,7 @@ describe('WebhookForm', () => {

expect(control).to.exist;
expect(control).to.be.instanceOf(InternalAsyncListControl);
expect(control).to.have.attribute('hide-delete-button');
expect(control).to.have.property('item', 'foxy-webhook-log-card');
expect(control).to.have.property('getPageHref', getPageHref);
expect(control).to.have.property(
Expand Down
2 changes: 2 additions & 0 deletions src/elements/public/WebhookForm/WebhookForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export class WebhookForm extends TranslatableMixin(InternalForm, 'webhook-form')
infer="statuses"
limit="10"
item="foxy-webhook-status-card"
hide-delete-button
.getPageHref=${this.getStatusPageHref}
.itemProps=${this.resourceUri ? { layout: 'resource' } : {}}
>
Expand All @@ -143,6 +144,7 @@ export class WebhookForm extends TranslatableMixin(InternalForm, 'webhook-form')
infer="logs"
limit="10"
item="foxy-webhook-log-card"
hide-delete-button
.getPageHref=${this.getLogPageHref}
.itemProps=${this.resourceUri ? { layout: 'resource' } : {}}
>
Expand Down

0 comments on commit c4e291f

Please sign in to comment.