Skip to content

Commit

Permalink
Merge pull request #159 from tv2/SOF-1072/renameSettingsInstallationName
Browse files Browse the repository at this point in the history
chore: SOF-1072 Rename installationName to customizationClassName
  • Loading branch information
LindvedKrvang committed Aug 22, 2022
2 parents 45052dd + 3cf847b commit 285b341
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions meteor/client/ui/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ export const App = translateWithTracker(() => {

setInterval(this.cronJob, CRON_INTERVAL)

if (Settings.installationName) {
document.body.classList.add(Settings.installationName)
if (Settings.customizationClassName) {
document.body.classList.add(Settings.customizationClassName)
}
const uiZoom = getUIZoom()
if (uiZoom !== 1) {
Expand Down
5 changes: 2 additions & 3 deletions meteor/lib/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export interface ISettings {
// Keyboard map layout (what physical layout to use for the keyboard)
keyboardMapLayout: KeyboardLayouts.Names

// Name of the installation. Used to include custom implementations that differ from the main Fork. I.e. custom CSS etc. Leave undefined if no custom implementation is needed
installationName?: string
// CSS class applied to the body of the page. Used to include custom implementations that differ from the main Fork. I.e. custom CSS etc. Leave undefined if no custom implementation is needed
customizationClassName?: string

// If true, countdowns of videos will count down to the last freeze-frame of the video instead of to the end of the video
useCountdownToFreezeFrame: boolean
Expand All @@ -76,7 +76,6 @@ const DEFAULT_SETTINGS = Object.freeze<ISettings>({
enableKeyboardPreview: true,
keyboardMapLayout: KeyboardLayouts.Names.STANDARD_102_TKL,
poisonKey: 'Escape',
installationName: 'tv2',
useCountdownToFreezeFrame: true,
})

Expand Down

0 comments on commit 285b341

Please sign in to comment.