Commit be96fb2d authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Minor fixes on nodes sharing implementation

parent 82262c27
Loading
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -102,12 +102,14 @@ public class NodesHtmlGenerator {
        List<String> personGroups = new ArrayList<>();
        List<String> peopleGroups = new ArrayList<>();
        for (String value : values) {
            if (!value.isBlank()) {
                if (value.startsWith("people.")) {
                    personGroups.add(value.substring("people.".length()).replace("\\.", "."));
                } else {
                    peopleGroups.add(value);
                }
            }
        }
        if (!personGroups.isEmpty()) {
            Element personIcon = cell.appendElement("span");
            personIcon.attr("class", "icon person-icon");
+1 −1
Original line number Diff line number Diff line
@@ -195,7 +195,7 @@ public class SharingService {
                if (identity.getType() == IdentityType.EDU_GAIN
                        && identity.getEppn().endsWith("@" + trustedEppnScope)) {
                    String username = identity.getEppn().substring(0, identity.getEppn().indexOf("@"));
                    existingUsers.put(user.getId(), username);
                    existingUsers.put(user.getId(), username.toLowerCase());
                    break;
                }
            }
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
  <div id="footer-fix"></div>
  <footer class="text-center" id="site-footer">
&nbsp;Powered by <img alt="IA2 logo" src="./assets/ia2-logo-footer.png">
    <strong class="text-primary"><a href="http://www.ia2.inaf.it/" target="blank_">IA2</a></strong>&nbsp;
    <strong class="text-primary"><a href="http://www.ia2.inaf.it/" target="_blank">IA2</a></strong>&nbsp;
  </footer>
  <div id="loading" v-if="loading" class="loading">
    <div class="spinner-wrapper">
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ export default {
      groupArr.splice(0, groupArr.length);
      for (let group of nodeArr.split(' ')) {
        if (group.startsWith('people.')) {
          userArr.push(group.substring('people.'.length).replaceAll('\\\\', '\\'));
          userArr.push(group.substring('people.'.length).replaceAll('\\', ''));
        } else if (group.trim() !== '') {
          groupArr.push(group.replaceAll('\\\\', '\\'));
        }