Drop rl.settings.capa

This commit is contained in:
the-djmaze 2022-04-25 09:57:32 +02:00
parent 671062af31
commit 071b2c1153
2 changed files with 4 additions and 3 deletions

View file

@ -13,7 +13,7 @@ export const
Settings = rl.settings,
SettingsGet = Settings.get,
SettingsCapa = Settings.capa,
SettingsCapa = name => name && !!(SettingsGet('Capa') || {})[name],
dropdowns = [],
dropdownVisibility = ko.observable(false).extend({ rateLimit: 0 }),

View file

@ -29,12 +29,13 @@ doc.documentElement.classList.toggle('rl-mobile', 'mobile' === layout[2] || (!la
window.rl = {
adminArea: () => admin,
settings: {
get: name => RL_APP_DATA[name],
set: (name, value) => RL_APP_DATA[name] = value,
app: name => RL_APP_DATA.System[name],
capa: name => name && !!(RL_APP_DATA.Capa || {})[name]
app: name => RL_APP_DATA.System[name]
},
setWindowTitle: title =>
doc.title = RL_APP_DATA.Title ? (title ? title + ' - ' : '') + RL_APP_DATA.Title : (title ? '' + title : ''),