Added color "avatar" for mail labels
This commit is contained in:
parent
affa6ba656
commit
4dbd796fd5
|
@ -692,6 +692,7 @@
|
||||||
<md-list>
|
<md-list>
|
||||||
<md-list-item ng-repeat="(key, value) in
|
<md-list-item ng-repeat="(key, value) in
|
||||||
preferences.defaults.SOGoMailLabelsColors">
|
preferences.defaults.SOGoMailLabelsColors">
|
||||||
|
<i class="md-avatar" ng-style="{'background-color': '{{value[1]}}'}"><!-- label color --></i>
|
||||||
<md-input-container>
|
<md-input-container>
|
||||||
<input type="text" ng-model="value[0]"/>
|
<input type="text" ng-model="value[0]"/>
|
||||||
</md-input-container>
|
</md-input-container>
|
||||||
|
|
|
@ -126,7 +126,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.addMailLabel = function() {
|
$scope.addMailLabel = function() {
|
||||||
$scope.preferences.defaults.SOGoMailLabelsColors["foo_bar"] = ["foo bar", "#FFFF00"];
|
$scope.preferences.defaults.SOGoMailLabelsColors["new_label"] = ["New label", "#aaa"];
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.removeMailLabel = function(key) {
|
$scope.removeMailLabel = function(key) {
|
||||||
|
|
Loading…
Reference in a new issue