This commit is contained in:
Michele Artini 2020-10-26 08:29:45 +01:00
parent 4c180e390c
commit bdae1ad93f
3 changed files with 7 additions and 15 deletions

View File

@ -39,7 +39,7 @@
</div>
<div class="card-body" ng-if="adminMode && currentTab == 3 && (org.status == 'approved' || org.status == 'suggested')">
<org-conflicts org="org" conflicts="conflicts" save-function="saveConflicts()" show-save-button="1"></org-form-conflicts>
<org-conflicts org="org" conflicts="conflicts" show-save-button="1"></org-form-conflicts>
</div>
</div>

View File

@ -268,8 +268,7 @@ orgsModule.directive('orgConflicts', function($http, $location, $route, $q) {
scope: {
'org' : '=',
'conflicts' : '=',
'showSaveButton' : '@',
'saveFunction' : '&'
'showSaveButton' : '@'
},
templateUrl: 'resources/html/parts/org_conflicts.html',
link: function(scope, element, attrs, ctrl) {
@ -485,14 +484,6 @@ orgsModule.controller('showEditCtrl', function ($scope, $http, $routeParams, $ro
});
}
$scope.saveConflicts = function() {
alert('todo');
}
vocabulariesService.getVocs(function(vocs) { $scope.vocabularies = vocs; });
$scope.getInfo();
$scope.gotoTab(1);

View File

@ -45,6 +45,11 @@ fieldset > legend { font-size : 1.2rem !important; }
</head>
<body ng-app="orgs" sec:authorize="isAuthenticated()">
<div id="spinnerdiv" class="overlaydiv">
<span class="grayRectangle"><!--The spinner is added on loading here--></span>
</div>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary" ng-controller="menuCtrl">
<a class="navbar-brand" href="#"> <img
src="resources/images/openaire_logo_small.png" width="30" height="30" alt="OpenOrgs Database">
@ -111,10 +116,6 @@ fieldset > legend { font-size : 1.2rem !important; }
<div class="container-fluid small mt-4" ng-view></div>
<div id="spinnerdiv" class="overlaydiv">
<span class="grayRectangle"><!--The spinner is added on loading here--></span>
</div>
<script sec:authorize="hasRole('ROLE_ADMIN')">
function superAdminMode() { return true; }
</script>