ci: Enforce code formatting on editor-ui (no-changelog) (#5022)

* ci: Enforce code formatting on editor-ui (no-changelog)

* pnpm format on all frontend code
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-12-23 13:37:32 +01:00
committed by GitHub
parent ff810794ef
commit a12606828e
13 changed files with 55 additions and 33 deletions

View File

@@ -53,7 +53,7 @@ function getTemplatesRedirect() {
const settingsStore = useSettingsStore();
const isTemplatesEnabled: boolean = settingsStore.isTemplatesEnabled;
if (!isTemplatesEnabled) {
return {name: VIEWS.NOT_FOUND};
return { name: VIEWS.NOT_FOUND };
}
return false;
@@ -75,7 +75,7 @@ const router = new Router({
name: VIEWS.HOMEPAGE,
meta: {
getRedirect() {
return {name: VIEWS.WORKFLOWS};
return { name: VIEWS.WORKFLOWS };
},
permissions: {
allow: {
@@ -450,7 +450,10 @@ const router = new Router({
deny: {
shouldDeny: () => {
const settingsStore = useSettingsStore();
return settingsStore.settings.hideUsagePage === true || settingsStore.settings.deployment?.type === 'cloud';
return (
settingsStore.settings.hideUsagePage === true ||
settingsStore.settings.deployment?.type === 'cloud'
);
},
},
},