Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions shell/assets/brand/suse/dark/login-landscape.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions shell/assets/brand/suse/login-landscape.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions shell/assets/brand/suse/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"banner": {
"bannerClass": "suse-banner-graphic",
"textAlign": "left"
},
"login": {
"bannerClass": "suse-login-banner-graphic"
}
}
5 changes: 5 additions & 0 deletions shell/assets/styles/themes/_suse.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@
object-position: right;
}
}

// SUSE Theme aligns graphic to left so that the container ship stays visible
.suse-login-banner-graphic {
object-position: left;
}
}

// Ensure that with a small window size, the banner centers, so that the text does not overlay
Expand Down
15 changes: 15 additions & 0 deletions shell/pages/auth/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import loadPlugins from '@shell/plugins/plugin';
import Loading from '@shell/components/Loading';
import { HARVESTER_NAME as HARVESTER } from '@shell/config/features';
import TabTitle from '@shell/components/TabTitle.vue';
import { getBrandMeta } from '@shell/utils/brand';

export default {
name: 'Login',
Expand Down Expand Up @@ -134,6 +135,19 @@ export default {
hasLoginMessage() {
return this.errorToDisplay || this.loggedOut || this.timedOut;
},

customizations() {
const globalSettings = this.$store.getters['management/all'](MANAGEMENT.SETTING);
const setting = globalSettings?.find((gs) => gs.id === SETTING.BRAND);
const brandMeta = getBrandMeta(setting?.value);
const login = brandMeta?.login || {};

return login;
},

bannerClass() {
return this.customizations.bannerClass;
}
},

async fetch() {
Expand Down Expand Up @@ -524,6 +538,7 @@ export default {
</div>
</div>
<BrandImage
:class="bannerClass"
class="col span-6 landscape"
data-testid="login-landscape__img"
file-name="login-landscape.svg"
Expand Down