Add support for colour setting spelled as ‘color’
This commit is contained in:
parent
7954ebd764
commit
59bbc8d8ef
|
@ -26,6 +26,8 @@ export default class Setting {
|
|||
constructor(args) {
|
||||
args = args.args || args;
|
||||
|
||||
if (args.type === 'color') args.type = 'colour';
|
||||
|
||||
if (args.type === 'bool') return new BoolSetting(args);
|
||||
else if (args.type === 'text') return new StringSetting(args);
|
||||
else if (args.type === 'number') return new NumberSetting(args);
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<FileSetting v-if="setting.type === 'file'" :setting="setting" :change="change"/>
|
||||
<ArraySetting v-if="setting.type === 'array'" :setting="setting" :change="change" />
|
||||
<CustomSetting v-if="setting.type === 'custom'" :setting="setting" :change="change" />
|
||||
<ColourSetting v-if="setting.type === 'colour' || setting.type === 'color'" :setting="setting" :change="change"/>
|
||||
<ColourSetting v-if="setting.type === 'colour'" :setting="setting" :change="change"/>
|
||||
<div class="bd-form-divider"></div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue