Skip to content

Commit

Permalink
Merge pull request #32 from fleetbase/dev-v0.2.8
Browse files Browse the repository at this point in the history
v0.2.8
  • Loading branch information
roncodes authored Oct 17, 2024
2 parents aa8274d + f36eb08 commit 2ba75a3
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 33 deletions.
14 changes: 2 additions & 12 deletions addon/components/webhook/attempts.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,9 @@ import { none } from '@ember/object/computed';
import copyToClipboard from '@fleetbase/ember-core/utils/copy-to-clipboard';

export default class WebhookAttemptsComponent extends Component {
/**
* Inject the `store` service
*
* @var {Service}
*/
@service store;

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

/**
* The current viewing webhook status
Expand Down Expand Up @@ -158,7 +148,7 @@ export default class WebhookAttemptsComponent extends Component {
* @void
*/
@action viewWebhookRequestEvent(webhook) {
return this.transitionToRoute('events.event', webhook.api_event);
return this.hostRouter.transitionTo('console.developers.events.view', webhook.api_event);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion addon/components/webhook/details.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{{t "developers.common.url"}}
</td>
<td>
{{n-a @webhook.url}}
<ClickToCopy @value={{@webhook.url}}>{{n-a @webhook.url}}</ClickToCopy>
</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion addon/controllers/api-keys/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ export default class ApiKeysIndexController extends Controller {
* @void
*/
@action viewRequestLogs(apiKey) {
return this.universe.transitionToEngineRoute('@fleetbase/dev-engine', 'logs.index', {
return this.hostRouter.transitionTo('console.developers.logs.index', {
queryParams: { key: apiKey.id },
});
}
Expand Down
2 changes: 1 addition & 1 deletion addon/controllers/events/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default class EventsIndexController extends BaseController {
* @void
*/
@action onRowClick(log) {
return this.transitionToRoute('events.view', log);
return this.hostRouter.transitionTo('console.developers.events.view', log);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion addon/controllers/logs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default class LogsIndexController extends BaseController {
* @void
*/
@action onRowClick(log) {
return this.transitionToRoute('logs.view', log);
return this.hostRouter.transitionTo('console.developers.logs.view', log);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions addon/controllers/sockets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class SocketsIndexController extends BaseController {
* @void
*/
@action onRowClick(row) {
return this.transitionToRoute('sockets.view', row);
return this.hostRouter.transitionTo('console.developers.sockets.view', row);
}

/**
Expand All @@ -102,7 +102,7 @@ export default class SocketsIndexController extends BaseController {
modal.startLoading();
const channelId = modal.getOption('channelId');

return this.transitionToRoute('sockets.view', { name: channelId });
return this.hostRouter.transitionTo('console.developers.sockets.view', { name: channelId });
},
});
}
Expand Down
2 changes: 1 addition & 1 deletion addon/controllers/webhooks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export default class WebhooksIndexController extends BaseController {
* @memberof WebhooksIndexController
*/
@action viewWebhook(webhook) {
return this.transitionToRoute('webhooks.view', webhook);
return this.hostRouter.transitionTo('console.developers.webhooks.view', webhook);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion addon/controllers/webhooks/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class WebhooksViewController extends BaseController {
this.webhooksIndexController.deleteWebhook(webhook, {
onConfirm: () => {
this.notifications.success(this.intl.t('developers.webhooks.view.webhook-deleted-success-message'));
return this.transitionToRoute('webhooks.index');
return this.hostRouter.transitionTo('console.developers.webhooks.index');
},
});
}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fleetbase/dev-engine",
"version": "0.2.7",
"version": "0.2.8",
"description": "Fleetbase Developers extension provides a module for managing developer resources such as API keys, webhooks, sockets, events and logs.",
"fleetbase": {
"route": "developers"
Expand Down Expand Up @@ -42,8 +42,8 @@
},
"dependencies": {
"@babel/core": "^7.23.2",
"@fleetbase/ember-core": "^0.2.19",
"@fleetbase/ember-ui": "^0.2.32",
"@fleetbase/ember-core": "^0.2.21",
"@fleetbase/ember-ui": "^0.2.35",
"@fortawesome/ember-fontawesome": "^2.0.0",
"@fortawesome/fontawesome-svg-core": "6.4.0",
"@fortawesome/free-brands-svg-icons": "6.4.0",
Expand Down
20 changes: 10 additions & 10 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 2ba75a3

Please sign in to comment.