hides when cannot select
This commit is contained in:
10
main.js
10
main.js
@@ -7000,6 +7000,7 @@ var $author$project$Main$isSelected = F2(
|
|||||||
return A2($elm$core$Set$member, id, selection);
|
return A2($elm$core$Set$member, id, selection);
|
||||||
});
|
});
|
||||||
var $elm$html$Html$label = _VirtualDom_node('label');
|
var $elm$html$Html$label = _VirtualDom_node('label');
|
||||||
|
var $elm$core$Basics$not = _Basics_not;
|
||||||
var $elm$json$Json$Decode$at = F2(
|
var $elm$json$Json$Decode$at = F2(
|
||||||
function (fields, decoder) {
|
function (fields, decoder) {
|
||||||
return A3($elm$core$List$foldr, $elm$json$Json$Decode$field, decoder, fields);
|
return A3($elm$core$List$foldr, $elm$json$Json$Decode$field, decoder, fields);
|
||||||
@@ -7081,7 +7082,12 @@ var $author$project$Main$viewItemTableRow = F2(
|
|||||||
$elm$html$Html$div,
|
$elm$html$Html$div,
|
||||||
_List_fromArray(
|
_List_fromArray(
|
||||||
[
|
[
|
||||||
$elm$html$Html$Attributes$class('level-right')
|
$elm$html$Html$Attributes$classList(
|
||||||
|
_List_fromArray(
|
||||||
|
[
|
||||||
|
_Utils_Tuple2('level-right', true),
|
||||||
|
_Utils_Tuple2('is-hidden', !canSelect)
|
||||||
|
]))
|
||||||
]),
|
]),
|
||||||
_List_fromArray(
|
_List_fromArray(
|
||||||
[
|
[
|
||||||
@@ -7100,7 +7106,7 @@ var $author$project$Main$viewItemTableRow = F2(
|
|||||||
$elm$html$Html$input,
|
$elm$html$Html$input,
|
||||||
_List_fromArray(
|
_List_fromArray(
|
||||||
[
|
[
|
||||||
$elm$html$Html$Attributes$class('checkbox level-item'),
|
$elm$html$Html$Attributes$class('checkbox level-item is-hidden'),
|
||||||
$elm$html$Html$Attributes$type_('checkbox'),
|
$elm$html$Html$Attributes$type_('checkbox'),
|
||||||
$elm$html$Html$Events$onCheck(
|
$elm$html$Html$Events$onCheck(
|
||||||
function (v) {
|
function (v) {
|
||||||
|
|||||||
@@ -331,7 +331,7 @@ viewItemTableRow selection item =
|
|||||||
[ div [ class "level-left" ]
|
[ div [ class "level-left" ]
|
||||||
[ p [class "level-item"] [ text item.name ]
|
[ p [class "level-item"] [ text item.name ]
|
||||||
]
|
]
|
||||||
, div [ class "level-right" ]
|
, div [ classList [("level-right", True), ("is-hidden", not canSelect)]]
|
||||||
[ p [class "level-item"] [ text (String.fromInt item.base_price ++ "po") ]
|
[ p [class "level-item"] [ text (String.fromInt item.base_price ++ "po") ]
|
||||||
, input [class "checkbox level-item", type_ "checkbox", onCheck (\v -> LootViewItemSwitched item.id)] []
|
, input [class "checkbox level-item", type_ "checkbox", onCheck (\v -> LootViewItemSwitched item.id)] []
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user