mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 05:57:57 +01:00
Merge pull request #489 from Vec7or/fix-color-bug
Fix tag-colors inside inherited acl
This commit is contained in:
commit
36e5a9747b
@ -104,6 +104,7 @@ public class DocumentResource extends BaseResource {
|
||||
* @apiSuccess {String="READ","WRITE"} inherited_acls.perm Permission
|
||||
* @apiSuccess {String} inherited_acls.source_id Source ID
|
||||
* @apiSuccess {String} inherited_acls.source_name Source name
|
||||
* @apiSuccess {String} inherited_acls.source_color The color of the Source
|
||||
* @apiSuccess {String} inherited_acls.id ID
|
||||
* @apiSuccess {String} inherited_acls.name Target name
|
||||
* @apiSuccess {String="USER","GROUP","SHARE"} inherited_acls.type Target type
|
||||
@ -196,6 +197,7 @@ public class DocumentResource extends BaseResource {
|
||||
.add("perm", aclDto.getPerm().name())
|
||||
.add("source_id", tagDto.getId())
|
||||
.add("source_name", tagDto.getName())
|
||||
.add("source_color", tagDto.getColor())
|
||||
.add("id", aclDto.getTargetId())
|
||||
.add("name", JsonUtil.nullable(aclDto.getTargetName()))
|
||||
.add("type", aclDto.getTargetType()));
|
||||
|
@ -22,7 +22,7 @@
|
||||
<tr ng-repeat="(id, acl) in inheritedAcls">
|
||||
<td>
|
||||
<a href="#/tag/{{ acl[0].source_id }}">
|
||||
<span class="fas fa-tags"></span>
|
||||
<span class="fas fa-tags" ng-style="{ 'color': acl[0].source_color }"></span>
|
||||
{{ acl[0].source_name }}
|
||||
</a>
|
||||
</td>
|
||||
|
Loading…
Reference in New Issue
Block a user