discourse-chat-integration/assets/javascripts/admin/routes/admin-plugins-chat-integrat...

13 lines
324 B
JavaScript
Raw Normal View History

import DiscourseRoute from "discourse/routes/discourse";
2023-01-23 13:30:48 -05:00
export default class AdminPluginsChatIntegrationIndex extends DiscourseRoute {
2017-10-03 05:42:07 -04:00
afterModel(model) {
if (model.totalRows > 0) {
this.transitionTo(
2021-08-26 09:52:53 -04:00
"adminPlugins.chat-integration.provider",
model.get("firstObject").name
);
2017-10-03 05:42:07 -04:00
}
2023-01-23 13:30:48 -05:00
}
}