Bugfix: Adds new confirmation email marketing step (#8091)

This commit is contained in:
Warren Buckley
2020-05-27 14:59:15 +00:00
committed by GitHub
parent 78a7785256
commit 9df6a8bd6a
4 changed files with 35 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
(function () {
"use strict";
function ConfirmController($scope, userService) {
var vm = this;
vm.userEmailAddress = "";
userService.getCurrentUser().then(function(user){
vm.userEmailAddress = user.email;
});
}
angular.module("umbraco").controller("Umbraco.Tours.UmbEmailMarketing.ConfirmController", ConfirmController);
})();

View File

@@ -0,0 +1,15 @@
<div ng-controller="Umbraco.Tours.UmbEmailMarketing.ConfirmController as vm">
<umb-tour-step-header title="model.currentStep.title"></umb-tour-step-header>
<umb-tour-step on-close="model.completeTour()">
<p>We have sent a welcome email to your email address <strong>{{ vm.userEmailAddress }}</strong></p>
</umb-tour-step>
<umb-tour-step-footer>
<div class="flex justify-end">
<umb-button type="button" button-style="link" action="model.completeTour()" label-key="general_close" shortcut="esc"></umb-button>
</div>
</umb-tour-step-footer>
</div>

View File

@@ -13,10 +13,7 @@
userService.addUserToEmailMarketing(user);
});
// Mark Tour as complete
// This is also can help us indicate that the user accepted
// Where disabled is set if user closes modal or chooses NO
$scope.model.completeTour();
$scope.model.nextStep();
}
}