Skip to content

Commit

Permalink
Automated start/stop support (#342)
Browse files Browse the repository at this point in the history
Parent issue: sequentech/meta#124
  • Loading branch information
edulix committed Sep 20, 2023
1 parent 590b405 commit 9d24113
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions avRegistration/auth-method-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@ angular.module('avRegistration')
return $http.post(url);
};

/**
* @returns the http request
*/
authmethod.scheduledEvents = function(eid, scheduledEvents)
{
var url = backendUrl + 'auth-event/' + eid + '/scheduled-events/';
return $http.post(url, scheduledEvents);
};

/**
* @returns the http request
*/
Expand Down
1 change: 1 addition & 0 deletions avUi/election-creation.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ angular.module('avUi')
extra_fields: [],
admin_fields: [],
num_successful_logins_allowed: el.num_successful_logins_allowed,
scheduled_events: el.scheduled_events || null,
allow_public_census_query: el.allow_public_census_query,
hide_default_login_lookup_field: el.hide_default_login_lookup_field,
parent_id: el.parent_id || null,
Expand Down
5 changes: 5 additions & 0 deletions dist/appCommon-v9.1.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist
url = backendUrl + "auth-event/" + url + "/resumed/";
return $http.post(url);
},
scheduledEvents: function(url, scheduledEvents) {
url = backendUrl + "auth-event/" + url + "/scheduled-events/";
return $http.post(url, scheduledEvents);
},
getTallySheet: function(eid, ballot_box_id, tally_sheet_id) {
var url = null, url = tally_sheet_id ? backendUrl + "auth-event/" + eid + "/ballot-box/" + ballot_box_id + "/tally-sheet/" + tally_sheet_id + "/" : backendUrl + "auth-event/" + eid + "/ballot-box/" + ballot_box_id + "/tally-sheet/";
return $http.get(url);
Expand Down Expand Up @@ -1523,6 +1527,7 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist
extra_fields: [],
admin_fields: [],
num_successful_logins_allowed: el.num_successful_logins_allowed,
scheduled_events: el.scheduled_events || null,
allow_public_census_query: el.allow_public_census_query,
hide_default_login_lookup_field: el.hide_default_login_lookup_field,
parent_id: el.parent_id || null,
Expand Down

0 comments on commit 9d24113

Please sign in to comment.