mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
DEV: Correctly lint bundled plugins admin directory (#29999)
This commit is contained in:
@ -8,7 +8,7 @@ import DButton from "discourse/components/d-button";
|
||||
import replaceEmoji from "discourse/helpers/replace-emoji";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import { i18n } from 'discourse-i18n';
|
||||
import { i18n } from "discourse-i18n";
|
||||
import ChannelTitle from "discourse/plugins/chat/discourse/components/channel-title";
|
||||
|
||||
export default class AdminChatIncomingWebhooksList extends Component {
|
||||
|
@ -2,7 +2,7 @@ import Component from "@glimmer/component";
|
||||
import { action } from "@ember/object";
|
||||
import { service } from "@ember/service";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import { i18n } from 'discourse-i18n';
|
||||
import { i18n } from "discourse-i18n";
|
||||
|
||||
export default class ChatAdminPluginActions extends Component {
|
||||
@service dialog;
|
||||
@ -20,9 +20,7 @@ export default class ChatAdminPluginActions extends Component {
|
||||
async exportMessages() {
|
||||
try {
|
||||
await this.chatAdminApi.exportMessages();
|
||||
this.dialog.alert(
|
||||
i18n("chat.admin.export_messages.export_has_started")
|
||||
);
|
||||
this.dialog.alert(i18n("chat.admin.export_messages.export_has_started"));
|
||||
} catch (error) {
|
||||
popupAjaxError(error);
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ import Form from "discourse/components/form";
|
||||
import replaceEmoji from "discourse/helpers/replace-emoji";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import { i18n } from 'discourse-i18n';
|
||||
import { i18n } from "discourse-i18n";
|
||||
import ChatChannelChooser from "discourse/plugins/chat/discourse/components/chat-channel-chooser";
|
||||
|
||||
export default class ChatIncomingWebhookEditForm extends Component {
|
||||
|
@ -3,7 +3,7 @@ import { service } from "@ember/service";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import DiscourseRoute from "discourse/routes/discourse";
|
||||
import { i18n } from 'discourse-i18n';
|
||||
import { i18n } from "discourse-i18n";
|
||||
import ChatChannel from "discourse/plugins/chat/discourse/models/chat-channel";
|
||||
|
||||
export default class DiscourseChatIncomingWebhooksIndex extends DiscourseRoute {
|
||||
|
Reference in New Issue
Block a user