Skip to content

Commit 3506e77

Browse files
committed
Added success notification
1 parent 99a145c commit 3506e77

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

client/app/templates/template-editor.component.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,14 @@ function ComponentController( $state, TemplatesService, EventNotifications, loda
7777
if (vm.existingTemplate) {
7878
TemplatesService.updateTemplate(vm.template).then(changesSuccessful, changesFailed);
7979
} else {
80-
TemplatesService.createTemplate(vm.template).then(changesSuccessful, createFailure);
80+
TemplatesService.createTemplate(vm.template).then(createSuccessful, createFailure);
8181
}
82-
83-
function changesSuccessful(_data) {
82+
function createSuccessful(_data) {
8483
$state.go('templates.explorer');
8584
}
85+
function changesSuccessful(_data) {
86+
EventNotifications.success(__("Templated updated"));
87+
}
8688
function changesFailed(_data) {
8789
EventNotifications.error(__("There was an error updating the template"));
8890
}

0 commit comments

Comments
 (0)