Skip to content

Commit

Permalink
Merge pull request #28 from fleetbase/dev-v0.2.4
Browse files Browse the repository at this point in the history
minor improvements, dependency upgrades, and license change from MIT …
  • Loading branch information
roncodes authored Jul 5, 2024
2 parents 7bc431c + 31c508f commit 206bdb5
Show file tree
Hide file tree
Showing 6 changed files with 704 additions and 55 deletions.
652 changes: 647 additions & 5 deletions LICENSE.md

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions addon/components/modals/webhook-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,9 @@
</div>
<p>
{{t "developers.component.modals.webhook-form.dropdown"}}
<a href="javascript:;" class="no-underline" {{on "click" @options.receiveAllEvents}}>
{{t "developers.component.modals.webhook-form.all-events"}}
<a href="javascript:;" class="no-underline text-blue-500 hover:text-blue-400" {{on "click" @options.receiveAllEvents}}>
{{t "developers.component.modals.webhook-form.all-events"}}.
</a>
.
</p>
</div>
</div>
Expand Down
16 changes: 16 additions & 0 deletions addon/controllers/webhooks/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ export default class WebhooksViewController extends BaseController {
*/
@service universe;

/**
* Inject the `hostRouter` service
*
* @var {Service}
*/
@service hostRouter;

/**
* All webhook events
*
Expand Down Expand Up @@ -155,4 +162,13 @@ export default class WebhooksViewController extends BaseController {
},
});
}

/**
* Reloads the view data.
*
* @memberof WebhooksViewController
*/
@action reload() {
this.hostRouter.refresh();
}
}
1 change: 1 addition & 0 deletions addon/templates/webhooks/view.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{{!-- {{#if @model.isTestMode}}
<Button @icon="reply" @text={{t "developers.webhooks.view.send-button-text"}} class="mr-2" />
{{/if}} --}}
<Button @icon="refresh" @onClick={{this.reload}} @helpText={{t "common.reload-data"}} class="mr-2" />
{{#if @model.isEnabled}}
<Button @icon="ban" @text={{t "developers.webhooks.view.disable-button-text"}} class="mr-2" @onClick={{fn this.disableWebhook @model}} />
{{else}}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fleetbase/dev-engine",
"version": "0.2.3",
"version": "0.2.4",
"description": "Fleetbase Developers extension provides a module for managing developer resources such as API keys, webhooks, sockets, events and logs.",
"fleetbase": {
"route": "developers"
Expand All @@ -15,7 +15,7 @@
"ember-engine"
],
"repository": "https://github.com/fleetbase/dev-engine",
"license": "MIT",
"license": "AGPL-3.0-or-later",
"author": "Fleetbase Pte Ltd <[email protected]>",
"directories": {
"app": "app",
Expand All @@ -41,8 +41,8 @@
"publish:github": "npm config set '@fleetbase:registry' https://npm.pkg.github.com/ && npm publish"
},
"dependencies": {
"@fleetbase/ember-core": "^0.2.11",
"@fleetbase/ember-ui": "^0.2.16",
"@fleetbase/ember-core": "^0.2.12",
"@fleetbase/ember-ui": "^0.2.18",
"@babel/core": "^7.23.2",
"ember-cli-babel": "^8.2.0",
"ember-cli-htmlbars": "^6.3.0",
Expand Down
77 changes: 34 additions & 43 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 206bdb5

Please sign in to comment.