Skip to content

Commit

Permalink
✨🐞 Improve/rethink/fix Live Preview (#400) (#401)
Browse files Browse the repository at this point in the history
Parent issue: sequentech/meta#752
  • Loading branch information
Findeton authored Jun 26, 2024
1 parent 18d82c1 commit defb515
Show file tree
Hide file tree
Showing 2 changed files with 16 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 @@ -67,6 +67,15 @@ angular.module('avRegistration')
var eid = authevent || authId;
return $http.post(backendUrl + 'auth-event/'+eid+'/register/', data);
};

authmethod.createLivePreview = function(data) {
return $http.post(backendUrl + 'auth-event/live-preview/', data);
};

authmethod.getLivePreview = function(id) {
var url = backendUrl + 'auth-event/'+ id + '/live-preview/';
return $http.get(url);
};

authmethod.getUserInfoExtra = function() {
if (!authmethod.isLoggedIn()) {
Expand Down
7 changes: 7 additions & 0 deletions dist/appCommon-vmaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist
eid = eid || authId;
return $http.post(backendUrl + "auth-event/" + eid + "/register/", data);
},
createLivePreview: function(data) {
return $http.post(backendUrl + "auth-event/live-preview/", data);
},
getLivePreview: function(url) {
url = backendUrl + "auth-event/" + url + "/live-preview/";
return $http.get(url);
},
getUserInfoExtra: function() {
if (authmethod.isLoggedIn()) return $http.get(backendUrl + "user/extra/", {});
var data = {
Expand Down

0 comments on commit defb515

Please sign in to comment.