Enable eslint sonar prefer-object-literal
This commit is contained in:
parent
9d8f9c806c
commit
e0013915fd
6 changed files with 26 additions and 31 deletions
|
@ -25,17 +25,15 @@ import template from './subtitlesettings.template.html';
|
|||
*/
|
||||
|
||||
function getSubtitleAppearanceObject(context) {
|
||||
const appearanceSettings = {};
|
||||
|
||||
appearanceSettings.textSize = context.querySelector('#selectTextSize').value;
|
||||
appearanceSettings.textWeight = context.querySelector('#selectTextWeight').value;
|
||||
appearanceSettings.dropShadow = context.querySelector('#selectDropShadow').value;
|
||||
appearanceSettings.font = context.querySelector('#selectFont').value;
|
||||
appearanceSettings.textBackground = context.querySelector('#inputTextBackground').value;
|
||||
appearanceSettings.textColor = layoutManager.tv ? context.querySelector('#selectTextColor').value : context.querySelector('#inputTextColor').value;
|
||||
appearanceSettings.verticalPosition = context.querySelector('#sliderVerticalPosition').value;
|
||||
|
||||
return appearanceSettings;
|
||||
return {
|
||||
textSize: context.querySelector('#selectTextSize').value,
|
||||
textWeight: context.querySelector('#selectTextWeight').value,
|
||||
dropShadow: context.querySelector('#selectDropShadow').value,
|
||||
font: context.querySelector('#selectFont').value,
|
||||
textBackground: context.querySelector('#inputTextBackground').value,
|
||||
textColor: layoutManager.tv ? context.querySelector('#selectTextColor').value : context.querySelector('#inputTextColor').value,
|
||||
verticalPosition: context.querySelector('#sliderVerticalPosition').value
|
||||
};
|
||||
}
|
||||
|
||||
function loadForm(context, user, userSettings, appearanceSettings, apiClient) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue