Skip to content

Commit

Permalink
Merge pull request #820 from Flexberry/fix_temp_layers_styles
Browse files Browse the repository at this point in the history
Fix temp layers styles
  • Loading branch information
DaryaNeko committed Oct 10, 2023
2 parents ee6a175 + b0fbd27 commit f22b771
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions addon/styles/addon.less
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,9 @@
}
}
}

.temp-layer-info {
> i {
color: #DBA939 !important;
}
}
7 changes: 6 additions & 1 deletion addon/templates/components/flexberry-maplayer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
{{flexberry-icon
class=(concat flexberryClassNames.typeIcon " " _typeIconClass)
}}
<div class={{concat flexberryClassNames.caption (if layer.temp " temp-item" "")}}>
<div class={{flexberryClassNames.caption}}>
{{layer.name}}
{{#if (and histEnabled (eq layer.type "with-history"))}}
от {{flexberry-simpledatetime
Expand All @@ -49,6 +49,11 @@
</div>
{{#if (and (not compare.compareLayersEnabled) (not readonly))}}
<div class="flexberry-treenode-buttons-block">
{{#if (and isGroup layer.temp)}}
<div class="temp-layer-info">
<i class="icon-guideline-circle-info" title="Группа содержит временные слои, которые не сохраняются и будут удалены после закрытия или обновления страницы"></i>
</div>
{{/if}}
{{#if (and (not readonlyData) (not isGroup) _editOperationIsAvailable _addFeatureIsAvailableApi)}}
{{flexberry-button
class=(concat flexberryClassNames.attributesButton " floated " flexberryClassNames.preventExpandCollapse)
Expand Down

0 comments on commit f22b771

Please sign in to comment.