specific custom mac address

This commit is contained in:
usmannasir
2018-09-25 23:56:10 +05:00
parent 07f3b87a5c
commit efae6a0866
14 changed files with 94 additions and 30 deletions

View File

@@ -1011,7 +1011,7 @@ app.controller('emailForwarding', function($scope,$http) {
};
$scope.deleteForwarding = function(destination){
$scope.deleteForwarding = function(source, destination){
$scope.creationBox = true;
$scope.emailDetails = true;
@@ -1025,7 +1025,8 @@ app.controller('emailForwarding', function($scope,$http) {
var data = {
destination:destination
destination:destination,
source: source
};
var config = {

View File

@@ -118,7 +118,7 @@
<td ng-bind="record.id"></td>
<td ng-bind="record.source"></td>
<td ng-bind="record.destination"></td>
<td ng-click="deleteForwarding(record.destination)"><img src="{% static 'images/delete.png' %}"></td>
<td ng-click="deleteForwarding(record.source, record.destination)"><img src="{% static 'images/delete.png' %}"></td>
</tr>
</tbody>
</table>

View File

@@ -311,8 +311,9 @@ def submitForwardDeletion(request):
data = json.loads(request.body)
destination = data['destination']
source = data['source']
forwarding = Forwardings.objects.get(destination=destination)
forwarding = Forwardings.objects.get(destination=destination, source=source)
forwarding.delete()
data_ret = {'deleteForwardingStatus': 1, 'error_message': "None", 'successMessage':'Successfully deleted!'}