DEV: removes unused modal-tab (#27869)

This commit is contained in:
Joffrey JAFFEUX 2024-07-11 11:55:25 +02:00 committed by GitHub
parent 0614279b9d
commit b024e32e74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 33 deletions

View File

@ -1 +0,0 @@
{{this.title}}

View File

@ -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);
}
},
});

View File

@ -5,9 +5,6 @@
white-space: pre-wrap;
max-height: 250px;
}
.modal-tab {
width: 95%;
}
}
.staff-actions {