mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
fix: restore current policy on dropdown selection
This commit is contained in:
parent
162a56250a
commit
8369e2e78e
@ -261,6 +261,10 @@ Application.Controllers.controller('SettingsController', ['$scope', '$filter', '
|
|||||||
* Change the revision of the displayed privacy policy, from drafts history
|
* Change the revision of the displayed privacy policy, from drafts history
|
||||||
*/
|
*/
|
||||||
$scope.handlePolicyRevisionChange = function () {
|
$scope.handlePolicyRevisionChange = function () {
|
||||||
|
if ($scope.privacyPolicy.version === null) {
|
||||||
|
$scope.privacyPolicy.bodyTemp = settingsPromise.privacy_body;
|
||||||
|
return;
|
||||||
|
}
|
||||||
for (const draft of $scope.privacyDraftsHistory) {
|
for (const draft of $scope.privacyDraftsHistory) {
|
||||||
if (draft.id == $scope.privacyPolicy.version) {
|
if (draft.id == $scope.privacyPolicy.version) {
|
||||||
$scope.privacyPolicy.bodyTemp = draft.content;
|
$scope.privacyPolicy.bodyTemp = draft.content;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user