This commit is contained in:
Jesús Ángel 2019-01-18 14:55:24 +01:00
parent dcf6c2486a
commit b90594f5a5
2 changed files with 12 additions and 14 deletions

View File

@ -14,7 +14,7 @@
aria-hidden="true"></i>
</th>
<th ng-if="(path === '/agents' || (path === '/agents/groups' && adminMode) || (isLookingGroup() && adminMode)) && !isLookingDefaultGroup"
class="wz-text-left col-lg-1">Actions</th>
class="wz-text-left" ng-class="{'col-lg-2': path !== '/agents', 'col-lg-1': path === '/agents'}">Actions</th>
</thead>
<tbody>
<tr ng-class="allowClick ? 'cursor-pointer' : ''" class="wz-word-wrap" ng-repeat="item in pagedItems[currentPage] | filter:{item:'!'}"
@ -36,19 +36,19 @@
tooltip="Open configuration for this agent" tooltip-placement="left" aria-hidden="true"></i>
</td>
<td ng-if="path === '/agents/groups' && adminMode" ng-click="$event.stopPropagation()" class="cursor-default action-btn-td">
<i ng-if="removingGroup !== item.name" ng-click="showConfirmRemoveGroup($event, item); $event.stopPropagation()"
<i ng-if="removingGroup !== item.name && item.name !== 'default'" ng-click="showConfirmRemoveGroup($event, item); $event.stopPropagation()"
class="fa fa-fw fa-remove cursor-pointer" tooltip="Remove this group" tooltip-placement="left"
aria-hidden="true"></i>
<div ng-if="removingGroup === item.name">
<span class="wz-padding-left-8" ng-if="removingGroup !== item.name && item.name === 'default'">-</span>
<div ng-if="removingGroup === item.name && item.name !== 'default'">
<div layout="row">
<span class="euiToastHeader__title font-size-12"><i class="fa fa-warning fa-fw"></i>
Group {{item.name}} will be removed</span>
<span class="euiToastHeader__title font-size-12">Group {{item.name}} will be removed</span>
</div>
<div layout="row">
<md-button class="cancelBtn" type="button" ng-click="cancelRemoveGroup()"><i aria-hidden='true'
class='fa fa-fw fa-close'></i> Cancel</md-button>
<md-button class="agreeBtn" type="button" ng-click="confirmRemoveGroup(item.name)"><i
aria-hidden='true' class='fa fa-fw fa-save'></i> Agree</md-button>
aria-hidden='true' class='fa fa-fw fa-check'></i> Confirm</md-button>
</div>
</div>
</td>
@ -59,15 +59,13 @@
tooltip-placement="left" aria-hidden="true"></i>
<div ng-if="removingAgent === item.id">
<div layout="row">
<span class="euiToastHeader__title font-size-12"><i class="fa fa-warning fa-fw"></i>
The
agent {{item.id}} will be removed from this group</span>
<span class="euiToastHeader__title font-size-12">The agent {{item.id}} will be removed from this group</span>
</div>
<div layout="row">
<md-button flex class="cancelBtn" type="button" ng-click="cancelRemoveAgent()"><i
<md-button class="cancelBtn" type="button" ng-click="cancelRemoveAgent()"><i
aria-hidden='true' class='fa fa-fw fa-close'></i> Cancel</md-button>
<md-button flex class="agreeBtn" type="button" ng-click="confirmRemoveAgent(item.id)"><i
aria-hidden='true' class='fa fa-fw fa-save'></i> Agree</md-button>
<md-button class="agreeBtn" type="button" ng-click="confirmRemoveAgent(item.id)"><i
aria-hidden='true' class='fa fa-fw fa-check'></i> Confirm</md-button>
</div>
</div>
</td>

View File

@ -56,11 +56,11 @@
<div class="wz-margin-top-10" ng-if="editGroup && addingGroupToAgent">
<div layout="row">
<span class="euiToastHeader__title font-size-12"><i class="fa fa-warning fa-fw"></i> Add group {{addingGroupToAgent}} to agent {{agent.id}}?</span>
<span class="euiToastHeader__title font-size-12">Group {{addingGroupToAgent}} will be added to agent {{agent.id}}</span>
</div>
<div layout="row">
<md-button class="cancelBtnAgents" type="button" ng-click="cancelAddGroup()"><i aria-hidden='true' class='fa fa-fw fa-close'></i> Cancel</md-button>
<md-button class="agreeBtnAgents" type="button" ng-click="confirmAddGroup(addingGroupToAgent)"><i aria-hidden='true' class='fa fa-fw fa-save'></i> Agree</md-button>
<md-button class="agreeBtnAgents" type="button" ng-click="confirmAddGroup(addingGroupToAgent)"><i aria-hidden='true' class='fa fa-fw fa-check'></i> Confirm</md-button>
</div>
</div>
</md-card-content>