Skip to content

Commit

Permalink
Fix the settings tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Diomede committed May 23, 2021
1 parent 385c92a commit 7198de1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion manifest.json
@@ -1,7 +1,7 @@
{
"id": "liquid-templates",
"name": "Liquid Templates",
"version": "0.1.1",
"version": "0.1.2",
"minAppVersion": "0.12.3",
"description": "Empower your template with LiquidJS tags",
"author": "diomedet",
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "liquid-templates",
"version": "0.1.0",
"version": "0.1.2",
"description": "Empower your template with LiquidJS tags",
"main": "main.js",
"scripts": {
Expand Down
16 changes: 8 additions & 8 deletions settings.ts
Expand Up @@ -37,9 +37,9 @@ export class LiquidTemplatesSettingsTab extends PluginSettingTab {
new Setting(containerEl)
.setName('Templates folder')
.setDesc('Folder where to find your templates, it will be used also as root folder for the liquid tags, like the include ones')
.addMomentFormat((text) =>
.addText((text) =>
text
.setDefaultFormat(DEFAULT_SETTINGS.templatesFolder)
.setPlaceholder(DEFAULT_SETTINGS.templatesFolder)
.setValue(this.plugin.settings.templatesFolder)
.onChange(async (value) => {
this.plugin.settings.templatesFolder = value || DEFAULT_SETTINGS.templatesFolder;
Expand All @@ -50,7 +50,7 @@ export class LiquidTemplatesSettingsTab extends PluginSettingTab {
new Setting(containerEl)
.setName('Exclude folders')
.setDesc('Name of the folders you want to exclude from the autosuggest menu, relative to the "Templates folder" above. Comma separated values. (useful if you have a "common" or "partial" folder where you store all the partial templates)')
.addMomentFormat((text) =>
.addText((text) =>
text
.setValue(this.plugin.settings.excludeFolders)
.onChange(async (value) => {
Expand All @@ -62,9 +62,9 @@ export class LiquidTemplatesSettingsTab extends PluginSettingTab {
new Setting(containerEl)
.setName('Date format')
.setDesc('Output format for render dates')
.addMomentFormat((text) =>
.addText((text) =>
text
.setDefaultFormat(DEFAULT_SETTINGS.dateFormat)
.setPlaceholder(DEFAULT_SETTINGS.dateFormat)
.setValue(this.plugin.settings.dateFormat)
.onChange(async (value) => {
this.plugin.settings.dateFormat = value || DEFAULT_SETTINGS.dateFormat;
Expand All @@ -75,9 +75,9 @@ export class LiquidTemplatesSettingsTab extends PluginSettingTab {
new Setting(containerEl)
.setName('Time format')
.setDesc('Output format for render time')
.addMomentFormat((text) =>
.addText((text) =>
text
.setDefaultFormat(DEFAULT_SETTINGS.timeFormat)
.setPlaceholder(DEFAULT_SETTINGS.timeFormat)
.setValue(this.plugin.settings.timeFormat)
.onChange(async (value) => {
this.plugin.settings.timeFormat = value || DEFAULT_SETTINGS.timeFormat;
Expand All @@ -88,7 +88,7 @@ export class LiquidTemplatesSettingsTab extends PluginSettingTab {
new Setting(containerEl)
.setName('Autocomplete trigger')
.setDesc('Character/s that trigger the autocomplete menu')
.addMomentFormat((text) =>
.addText((text) =>
text
.setPlaceholder(DEFAULT_SETTINGS.autocompleteTrigger)
.setValue(this.plugin.settings.autocompleteTrigger || DEFAULT_SETTINGS.autocompleteTrigger)
Expand Down
2 changes: 1 addition & 1 deletion versions.json
@@ -1,3 +1,3 @@
{
"0.1.1": "0.12.3"
"0.1.2": "0.12.3"
}

0 comments on commit 7198de1

Please sign in to comment.