Merge "[CORD-1685] Adding copyright informations"
diff --git a/src/app/core/services/helpers/config.helpers.spec.ts b/src/app/core/services/helpers/config.helpers.spec.ts
index 00de431..be6f7a5 100644
--- a/src/app/core/services/helpers/config.helpers.spec.ts
+++ b/src/app/core/services/helpers/config.helpers.spec.ts
@@ -209,7 +209,9 @@
expect(cfg.columns).toBeDefined();
expect(cfg.filter).toBe('fulltext');
expect(cfg.order).toEqual({field: 'id', reverse: false});
- expect(cfg.actions.length).toBe(1);
+ expect(cfg.actions.length).toBe(2);
+ expect(cfg.actions[0].label).toEqual('details');
+ expect(cfg.actions[1].label).toEqual('delete');
});
});
diff --git a/src/app/core/services/helpers/config.helpers.ts b/src/app/core/services/helpers/config.helpers.ts
index 7cd8991..3177af1 100644
--- a/src/app/core/services/helpers/config.helpers.ts
+++ b/src/app/core/services/helpers/config.helpers.ts
@@ -139,6 +139,13 @@
},
actions: [
{
+ label: 'details',
+ icon: 'search',
+ cb: (item) => {
+ this.$state.go(this.$state.current.name, {id: item.id});
+ }
+ },
+ {
label: 'delete',
icon: 'remove',
color: 'red',
diff --git a/src/app/core/table/table.html b/src/app/core/table/table.html
index 172e3ca..b8fe9f4 100644
--- a/src/app/core/table/table.html
+++ b/src/app/core/table/table.html
@@ -102,7 +102,7 @@
</div>
</div>
</td>
- <td ng-if="vm.config.actions">
+ <td class="xos-table-actions" ng-if="vm.config.actions">
<a href=""
ng-repeat="action in vm.config.actions"
ng-click="action.cb(item)"
diff --git a/src/app/core/table/table.scss b/src/app/core/table/table.scss
index 844cf3b..1189a9f 100644
--- a/src/app/core/table/table.scss
+++ b/src/app/core/table/table.scss
@@ -51,4 +51,10 @@
z-index: 2;
}
+ td.xos-table-actions {
+ a + a {
+ margin-left: $padding-base-horizontal;
+ }
+ }
+
}
\ No newline at end of file