show selected icon and set selected color on editing icon
This commit is contained in:
@@ -212,6 +212,8 @@ Use this directive to construct a header inside the main editor window.
|
||||
scope.dialogModel = {
|
||||
view: "iconpicker",
|
||||
show: true,
|
||||
icon: scope.icon.split(' ')[0],
|
||||
color: scope.icon.split(' ')[1],
|
||||
submit: function (model) {
|
||||
|
||||
/* ensure an icon is selected, because on focus on close button
|
||||
|
||||
@@ -15,6 +15,14 @@ function IconPickerOverlay($scope, iconHelper, localizationService) {
|
||||
$scope.model.title = localizationService.localize("defaultdialogs_selectIcon");
|
||||
}
|
||||
|
||||
if ($scope.model.color) {
|
||||
$scope.color = $scope.model.color;
|
||||
}
|
||||
|
||||
if ($scope.model.icon) {
|
||||
$scope.searchTerm = $scope.model.icon;
|
||||
}
|
||||
|
||||
iconHelper.getIcons().then(function(icons) {
|
||||
$scope.icons = icons;
|
||||
$scope.loading = false;
|
||||
|
||||
Reference in New Issue
Block a user