Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Sep 24, 2024
1 parent c0d3707 commit afc8dfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/F5Purger.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public function attributeLabels(): array
{
return [
'baseUrl' => Craft::t('blitz-f5', 'Base URL'),
'apiToken' => Craft::t('blitz-f5', 'API Token'),
];
}

Expand All @@ -110,7 +111,7 @@ public function attributeLabels(): array
public function rules(): array
{
return [
[['baseUrl', 'namespace', 'name'], 'required'],
[['baseUrl', 'namespace', 'name', 'apiToken'], 'required'],
];
}

Expand Down
2 changes: 1 addition & 1 deletion src/templates/settings.twig
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{{ forms.autosuggestField({
label: 'API Token'|t('blitz-f5'),
instructions: 'The API token.'|t('blitz-f5'),
placeholder: 'API Token',
placeholder: '',
suggestEnvVars: true,
suggestions: craft.cp.getEnvSuggestions(),
name: 'apiToken',
Expand Down

0 comments on commit afc8dfa

Please sign in to comment.