Skip to content

Commit

Permalink
Merge pull request #15962 from qmonmert/vue/cleancode
Browse files Browse the repository at this point in the history
[Vue] Use template strings
  • Loading branch information
DanielFran authored Aug 13, 2021
2 parents 12a1a7a + 1f62f85 commit 85f6365
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Component from 'vue-class-component';
export default class LogsService extends Vue {

public changeLevel(name: string, configuredLevel: string): AxiosPromise<any> {
return axios.post('management/loggers/' + name, {configuredLevel});
return axios.post(`management/loggers/${name}`, { configuredLevel });
}

public findAll(): AxiosPromise<any> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export const SERVER_API_URL = process.env.SERVER_API_URL;

// Errors
export const PROBLEM_BASE_URL = 'https://www.jhipster.tech/problem';
export const EMAIL_ALREADY_USED_TYPE = PROBLEM_BASE_URL + '/email-already-used';
export const LOGIN_ALREADY_USED_TYPE = PROBLEM_BASE_URL + '/login-already-used';
export const EMAIL_ALREADY_USED_TYPE = `${PROBLEM_BASE_URL}/email-already-used`;
export const LOGIN_ALREADY_USED_TYPE = `${PROBLEM_BASE_URL}/login-already-used`;

0 comments on commit 85f6365

Please sign in to comment.