AaronSadlerUK
08/09/2023, 1:05 PMjavascript
umbCheckoutStripeTaxRateResources.createTaxRate(configurationValues)
.then(function (response) {
localizationService.localize("umbcheckoutstripe_tax_rate_notification_created_title").then(function (value) {
vm.notificationTitle = value;
});
localizationService.localize("umbcheckoutstripe_tax_rate_notification_created_message").then(function (value) {
vm.notificationMessage = value;
});
vm.properties = response.data.properties
notificationsService.success(vm.notificationTitle, vm.notificationMessage);
vm.saveButtonState = "success";
$scope.taxRateForm.$dirty = false;
$location.path("/settings/UmbCheckout/StripeTaxRate/" + response.data.key);
})
However if I load it right at the top of the controller and assign it to a variable it works, but means tons of variables assign at load upAmbert
08/09/2023, 1:08 PMAmbert
08/09/2023, 1:08 PMjavascript
organizationMembersApiResource.createMemberGroup(vm.newMemberGroupName, $scope.model.org.id).then(function (response) {
if (response.succeeded) {
eventsService.emit("memberGroup.created", response.content);
editorService.closeAll();
localizationService.localize("pbiMember_memberGroupCreated").then(function (value) {
notificationsService.success("Success:", value);
});
Ambert
08/09/2023, 1:09 PMAaronSadlerUK
08/09/2023, 1:10 PMnathanwoulfe
08/09/2023, 11:33 PMAaronSadlerUK
08/11/2023, 3:57 PM