mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: removes unused modal-tab (#27869)
This commit is contained in:
parent
0614279b9d
commit
b024e32e74
@ -1 +0,0 @@
|
|||||||
{{this.title}}
|
|
@ -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);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
});
|
|
@ -5,9 +5,6 @@
|
|||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
max-height: 250px;
|
max-height: 250px;
|
||||||
}
|
}
|
||||||
.modal-tab {
|
|
||||||
width: 95%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.staff-actions {
|
.staff-actions {
|
||||||
|
Loading…
Reference in New Issue
Block a user