From b024e32e7420f5ab80ca4de8edc6ab6e60752c88 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 11 Jul 2024 11:55:25 +0200 Subject: [PATCH] DEV: removes unused modal-tab (#27869) --- .../discourse/app/components/modal-tab.hbs | 1 - .../discourse/app/components/modal-tab.js | 29 ------------------- .../stylesheets/common/admin/staff_logs.scss | 3 -- 3 files changed, 33 deletions(-) delete mode 100644 app/assets/javascripts/discourse/app/components/modal-tab.hbs delete mode 100644 app/assets/javascripts/discourse/app/components/modal-tab.js diff --git a/app/assets/javascripts/discourse/app/components/modal-tab.hbs b/app/assets/javascripts/discourse/app/components/modal-tab.hbs deleted file mode 100644 index c7a7671f89a..00000000000 --- a/app/assets/javascripts/discourse/app/components/modal-tab.hbs +++ /dev/null @@ -1 +0,0 @@ -{{this.title}} \ No newline at end of file diff --git a/app/assets/javascripts/discourse/app/components/modal-tab.js b/app/assets/javascripts/discourse/app/components/modal-tab.js deleted file mode 100644 index b01b39e9270..00000000000 --- a/app/assets/javascripts/discourse/app/components/modal-tab.js +++ /dev/null @@ -1,29 +0,0 @@ -import Component from "@ember/component"; -import { equal } from "@ember/object/computed"; -import { propertyEqual } from "discourse/lib/computed"; -import discourseComputed from "discourse-common/utils/decorators"; -import I18n from "discourse-i18n"; - -export default Component.extend({ - tagName: "li", - classNames: ["modal-tab"], - panel: null, - selectedPanel: null, - panelsLength: null, - classNameBindings: ["isActive", "singleTab", "panel.id"], - singleTab: equal("panelsLength", 1), - isActive: propertyEqual("panel.id", "selectedPanel.id"), - - @discourseComputed("panel.title", "panel.rawTitle") - title(title, rawTitle) { - return title ? I18n.t(title) : rawTitle; - }, - - click() { - this.set("selectedPanel", this.panel); - - if (this.onSelectPanel) { - this.onSelectPanel(this.panel); - } - }, -}); diff --git a/app/assets/stylesheets/common/admin/staff_logs.scss b/app/assets/stylesheets/common/admin/staff_logs.scss index 600619b9560..98f44829311 100644 --- a/app/assets/stylesheets/common/admin/staff_logs.scss +++ b/app/assets/stylesheets/common/admin/staff_logs.scss @@ -5,9 +5,6 @@ white-space: pre-wrap; max-height: 250px; } - .modal-tab { - width: 95%; - } } .staff-actions {