Skip to content

Commit 5535fe3

Browse files
committed
fix(client): fix a few client code errors
1 parent 640d5ff commit 5535fe3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: templates/app/client/app/account(auth)/settings/settings.component.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class SettingsComponent {
4141
this.submitted = true;
4242

4343
if(form.$valid) {
44-
this.Auth.changePassword(this.user.oldPassword, this.user.newPassword)
44+
this.AuthService.changePassword(this.user.oldPassword, this.user.newPassword)
4545
.then(() => {
4646
this.message = 'Password successfully changed.';
4747
})

Diff for: templates/app/client/app/app.constants.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ export default from '../../server/config/environment/shared';<% } %>
33
<%_ if(filters.ts) { -%>
44
import shared from '../../server/config/environment/shared';
55

6-
module.exports.default = shared;<% } %>
6+
export default shared;<% } %>

Diff for: templates/app/client/app/main/main.component.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ export class MainComponent implements OnInit<% if(filters.socketio) { %>, OnDest
4949
}
5050

5151
deleteThing(thing) {
52-
this.$http.delete('/api/things/' + thing._id);
52+
this.Http.delete(`/api/things/${thing._id}`);
5353
}<% } %>
5454
}

0 commit comments

Comments
 (0)