mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-08 23:45:36 +02:00
specific custom mac address
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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!'}
|
||||
|
||||
Reference in New Issue
Block a user