client-app/app/components/tabbed-section.js in logster-1.3.0 vs client-app/app/components/tabbed-section.js in logster-1.3.1
- old
+ new
@@ -1,32 +1,32 @@
-import Component from "@ember/component";
-
-export default Component.extend({
- tabs: Em.A(),
- selectTab(view) {
- if (view.get("isLink")) {
- this.triggerAction(view.get("action"));
- return;
- }
-
- const selected = this.get("selected");
- if (selected) {
- selected.set("active", false);
- }
- this.set("selected", view);
- view.set("active", true);
- },
-
- addTab(tab) {
- this.get("tabs").addObject(tab);
- if (!this.get("selected") && !tab.get("isLink")) {
- this.selectTab(tab);
- }
- },
-
- removeTab(tab) {
- if (this.get("selected") === tab) {
- this.set("selected", null);
- }
- this.get("tabs").removeObject(tab);
- }
-});
+import Component from "@ember/component";
+
+export default Component.extend({
+ tabs: Em.A(),
+ selectTab(view) {
+ if (view.get("isLink")) {
+ this.triggerAction(view.get("action"));
+ return;
+ }
+
+ const selected = this.get("selected");
+ if (selected) {
+ selected.set("active", false);
+ }
+ this.set("selected", view);
+ view.set("active", true);
+ },
+
+ addTab(tab) {
+ this.get("tabs").addObject(tab);
+ if (!this.get("selected") && !tab.get("isLink")) {
+ this.selectTab(tab);
+ }
+ },
+
+ removeTab(tab) {
+ if (this.get("selected") === tab) {
+ this.set("selected", null);
+ }
+ this.get("tabs").removeObject(tab);
+ }
+});