ci: Make builds release-channel aware. Add support for scheduled beta builds (#7323)
ADO-1121 --------- Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
committed by
GitHub
parent
8f9fe6269b
commit
101255d186
@@ -5,19 +5,16 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useRootStore, useSettingsStore } from '@/stores';
|
||||
import { useRootStore, useUIStore } from '@/stores';
|
||||
|
||||
export default defineComponent({
|
||||
computed: {
|
||||
...mapStores(useRootStore, useSettingsStore),
|
||||
...mapStores(useRootStore, useUIStore),
|
||||
basePath(): string {
|
||||
return this.rootStore.baseUrl;
|
||||
},
|
||||
logoPath(): string {
|
||||
return (
|
||||
this.basePath +
|
||||
(this.settingsStore.settings.isBetaRelease ? 'n8n-beta-logo.svg' : 'n8n-logo-expanded.svg')
|
||||
);
|
||||
return this.basePath + this.uiStore.logo;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -158,13 +158,13 @@ export default defineComponent({
|
||||
logoPath(): string {
|
||||
if (this.isCollapsed) return this.basePath + 'n8n-logo-collapsed.svg';
|
||||
|
||||
return (
|
||||
this.basePath +
|
||||
(this.settingsStore.settings.isBetaRelease ? 'n8n-beta-logo.svg' : 'n8n-logo-expanded.svg')
|
||||
);
|
||||
return this.basePath + this.uiStore.logo;
|
||||
},
|
||||
hasVersionUpdates(): boolean {
|
||||
return !this.settingsStore.settings.isBetaRelease && this.versionsStore.hasVersionUpdates;
|
||||
return (
|
||||
this.settingsStore.settings.releaseChannel === 'stable' &&
|
||||
this.versionsStore.hasVersionUpdates
|
||||
);
|
||||
},
|
||||
nextVersions(): IVersion[] {
|
||||
return this.versionsStore.nextVersions;
|
||||
|
||||
Reference in New Issue
Block a user