Skip to content

Commit e5824e5

Browse files
committed
resolved #50
1 parent 5f9cf2c commit e5824e5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/AbpCompanyName.AbpProjectName.WebSpaAngular/App/Main/views/tenants/createModal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
vm.save = function () {
1515
abp.ui.setBusy();
1616
tenantService.createTenant(vm.tenant)
17-
.success(function () {
17+
.then(function () {
1818
abp.notify.info(App.localize('SavedSuccessfully'));
1919
$modalInstance.close();
2020
}).finally(function () {

src/AbpCompanyName.AbpProjectName.WebSpaAngular/App/Main/views/tenants/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
vm.tenants = [];
88

99
function getTenants() {
10-
tenantService.getTenants({}).success(function (result) {
11-
vm.tenants = result.items;
10+
tenantService.getTenants({}).then(function (result) {
11+
vm.tenants = result.data.items;
1212
});
1313
}
1414

src/AbpCompanyName.AbpProjectName.WebSpaAngular/App/Main/views/users/createModal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
vm.save = function () {
1212
userService.createUser(vm.user)
13-
.success(function () {
13+
.then(function () {
1414
abp.notify.info(App.localize('SavedSuccessfully'));
1515
$modalInstance.close();
1616
});

src/AbpCompanyName.AbpProjectName.WebSpaAngular/App/Main/views/users/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
vm.users = [];
88

99
function getUsers() {
10-
userService.getUsers({}).success(function (result) {
11-
vm.users = result.items;
10+
userService.getUsers({}).then(function (result) {
11+
vm.users = result.data.items;
1212
});
1313
}
1414

0 commit comments

Comments
 (0)