diff --git a/addon/components/hyper-table/cell-renderers/list.hbs b/addon/components/hyper-table/cell-renderers/list.hbs index 0d89366e..8fbd44f1 100644 --- a/addon/components/hyper-table/cell-renderers/list.hbs +++ b/addon/components/hyper-table/cell-renderers/list.hbs @@ -10,10 +10,19 @@
{{#each this.value as |item|}}
{{item.name}} + {{#if item.locked}} + + {{/if}}
{{/each}}
diff --git a/addon/components/hyper-table/cell-renderers/list.js b/addon/components/hyper-table/cell-renderers/list.js index 170f9403..5e2badbb 100644 --- a/addon/components/hyper-table/cell-renderers/list.js +++ b/addon/components/hyper-table/cell-renderers/list.js @@ -17,8 +17,8 @@ export default Component.extend(CellRendererMixin, { }), actions: { - goToUrl(url, event) { - if (!this.url) { + goToUrl(url, locked, event) { + if (!this.url || locked) { event.preventDefault(); event.stopPropagation(); return; diff --git a/app/styles/cells.less b/app/styles/cells.less index 8926667e..ae707f39 100644 --- a/app/styles/cells.less +++ b/app/styles/cells.less @@ -295,6 +295,12 @@ padding: var(--spacing-px-12) var(--spacing-px-18); cursor: pointer; + &-disabled { + &:hover { + cursor: not-allowed; + } + } + &:hover { background-color: var(--color-gray-100); } diff --git a/translations/en-us.yaml b/translations/en-us.yaml index 1ae5e5bb..6e90992e 100644 --- a/translations/en-us.yaml +++ b/translations/en-us.yaml @@ -85,4 +85,4 @@ hypertable: records_selected: '{count, plural, =0 {{count} record is selected} =1 {{count} record is selected} other {{count} records are selected}}' all_records_selected: All records ({count}) are selected select_all: '{count, plural, =1 {Select all {count} record} other {Select all {count} records}}' - clear: Clear selection + clear: Clear selection \ No newline at end of file