Skip to content

Commit

Permalink
RANGER-3667 : Improve feedback in policy creation UI when resource do…
Browse files Browse the repository at this point in the history
…es not exist.

Signed-off-by: Nitin Galave <ni3galave@apache.org>
  • Loading branch information
dhavaljrajpara authored and ni3galave committed Mar 23, 2022
1 parent f66c559 commit d8fc10a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
8 changes: 7 additions & 1 deletion security-admin/src/main/webapp/scripts/utils/XAUtils.js
Expand Up @@ -1542,12 +1542,18 @@ define(function(require) {
return null;
}else{
return {
id : term,
id : "<b><i class='text-muted-select2'>Create</i></b> " + term,
text: term
};
}
}
},
formatResult : function(result){
return result.id;
},
formatSelection : function(result){
return result.text;
},
};

return opts;
Expand Down
Expand Up @@ -789,8 +789,8 @@ define(function(require){
return null;
}else{
return {
id : term,
text: term
id : "<b><i class='text-muted-select2'>Create</i></b> " + term,
text: term,
};
}
}
Expand Down Expand Up @@ -831,7 +831,7 @@ define(function(require){

},
formatResult : function(result){
return result.text;
return result.id;
},
formatSelection : function(result){
return result.text;
Expand Down
Expand Up @@ -361,7 +361,7 @@ define(function(require) {
return null;
} else {
return {
id: term,
id: "<b><i class='text-muted-select2'>Create</i></b> " + term,
text: term
};
}
Expand Down Expand Up @@ -413,7 +413,7 @@ define(function(require) {

},
formatResult: function(result) {
return result.text;
return result.id;
},
formatSelection: function(result) {
return result.text;
Expand Down
Expand Up @@ -347,7 +347,7 @@ define(function(require) {
return null;
} else {
return {
id: term,
id: "<b><i class='text-muted-select2'>Create</i></b> " + term,
text: term
};
}
Expand Down Expand Up @@ -399,7 +399,7 @@ define(function(require) {

},
formatResult: function(result) {
return result.text;
return result.id;
},
formatSelection: function(result) {
return result.text;
Expand Down
6 changes: 5 additions & 1 deletion security-admin/src/main/webapp/styles/xa.css
Expand Up @@ -980,7 +980,7 @@ ul.tagit li.tagit-choice .tagit-close {
}

.ui-menu.ui-widget.ui-widget-content.ui-autocomplete.ui-front.tagit-autocomplete {
width: 50% !important;
width: 21% !important;
}

table.backgrid tr > td > .label {
Expand Down Expand Up @@ -2872,6 +2872,10 @@ div#zoneServiceAccordion table thead {
opacity: 0.7;
}

.text-muted-select2 {
opacity: 0.5;
}

.center {
text-align: center;
}
Expand Down

0 comments on commit d8fc10a

Please sign in to comment.