mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 04:10:01 +00:00
refactor(editor): Stricter linting for promises and async functions (no-changelog) (#4642)
This commit is contained in:
@@ -171,27 +171,27 @@ export default mixins(userHelpers).extend({
|
||||
switch (key) {
|
||||
case 'settings-personal':
|
||||
if (this.$router.currentRoute.name !== VIEWS.PERSONAL_SETTINGS) {
|
||||
this.$router.push({ name: VIEWS.PERSONAL_SETTINGS });
|
||||
await this.$router.push({ name: VIEWS.PERSONAL_SETTINGS });
|
||||
}
|
||||
break;
|
||||
case 'settings-users':
|
||||
if (this.$router.currentRoute.name !== VIEWS.USERS_SETTINGS) {
|
||||
this.$router.push({ name: VIEWS.USERS_SETTINGS });
|
||||
await this.$router.push({ name: VIEWS.USERS_SETTINGS });
|
||||
}
|
||||
break;
|
||||
case 'settings-api':
|
||||
if (this.$router.currentRoute.name !== VIEWS.API_SETTINGS) {
|
||||
this.$router.push({ name: VIEWS.API_SETTINGS });
|
||||
await this.$router.push({ name: VIEWS.API_SETTINGS });
|
||||
}
|
||||
break;
|
||||
case 'settings-ldap':
|
||||
if (this.$router.currentRoute.name !== VIEWS.LDAP_SETTINGS) {
|
||||
this.$router.push({ name: VIEWS.LDAP_SETTINGS });
|
||||
void this.$router.push({ name: VIEWS.LDAP_SETTINGS });
|
||||
}
|
||||
break;
|
||||
case 'settings-log-streaming':
|
||||
if (this.$router.currentRoute.name !== VIEWS.LOG_STREAMING_SETTINGS) {
|
||||
this.$router.push({ name: VIEWS.LOG_STREAMING_SETTINGS });
|
||||
void this.$router.push({ name: VIEWS.LOG_STREAMING_SETTINGS });
|
||||
}
|
||||
break;
|
||||
case 'users': // Fakedoor feature added via hooks when user management is disabled on cloud
|
||||
@@ -201,22 +201,22 @@ export default mixins(userHelpers).extend({
|
||||
break;
|
||||
case 'settings-community-nodes':
|
||||
if (this.$router.currentRoute.name !== VIEWS.COMMUNITY_NODES) {
|
||||
this.$router.push({ name: VIEWS.COMMUNITY_NODES });
|
||||
await this.$router.push({ name: VIEWS.COMMUNITY_NODES });
|
||||
}
|
||||
break;
|
||||
case 'settings-usage-and-plan':
|
||||
if (this.$router.currentRoute.name !== VIEWS.USAGE) {
|
||||
this.$router.push({ name: VIEWS.USAGE });
|
||||
void this.$router.push({ name: VIEWS.USAGE });
|
||||
}
|
||||
break;
|
||||
case 'settings-sso':
|
||||
if (this.$router.currentRoute.name !== VIEWS.SSO_SETTINGS) {
|
||||
this.$router.push({ name: VIEWS.SSO_SETTINGS });
|
||||
void this.$router.push({ name: VIEWS.SSO_SETTINGS });
|
||||
}
|
||||
break;
|
||||
case 'settings-version-control':
|
||||
if (this.$router.currentRoute.name !== VIEWS.VERSION_CONTROL) {
|
||||
this.$router.push({ name: VIEWS.VERSION_CONTROL });
|
||||
void this.$router.push({ name: VIEWS.VERSION_CONTROL });
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user