feat(hide-columns): correct storage keys

This commit is contained in:
Sarah Vaupel 2019-11-26 17:15:59 +01:00 committed by Gregor Kleen
parent d55d3ef484
commit 610d13a729
2 changed files with 2 additions and 3 deletions

View File

@ -2,12 +2,11 @@ import { Utility } from '../../core/utility';
import { StorageManager } from '../../lib/storage-manager/storage-manager';
const HIDE_COLUMNS_CONTAINER_IDENT = 'uw-hide-columns';
const TABLE_HEADER_IDENT = 'hide-column-header';
const TABLE_HEADER_IDENT = 'uw-hide-column-header';
const TABLE_UTILS_ATTR = 'table-utils';
const TABLE_UTILS_CONTAINER_SELECTOR = `[${TABLE_UTILS_ATTR}]`;
const HIDER_TEXT_ATTR = 'header-text';
const HIDE_BUTTON_FADE_DELAY = 3000;

View File

@ -1,5 +1,5 @@
$newline never
<th .table__th *{attrs} :isSortable:.sortable :isSorted SortAsc:.sorted-asc :isSorted SortDesc:.sorted-desc>
<th .table__th *{attrs} :isSortable:.sortable :isSorted SortAsc:.sorted-asc :isSorted SortDesc:.sorted-desc uw-hide-column-header=#{maybe "" toPathPiece sortableKey}>
$maybe flag <- sortableKey
$case directions
$of [SortAsc]