Skip to content

Commit

Permalink
Improve settings information (#104)
Browse files Browse the repository at this point in the history
* Improve settings information

* feat(settings): add server host URL as default value

* style(settings): remove extra wordings

---------

Co-authored-by: Mahyar Iranibazaz <mahiarirani@pm.me>
  • Loading branch information
JoaoSRaposo and mahiarirani authored Feb 4, 2025
1 parent 809ba5e commit d917608
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Auth/License.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public function __construct(IL10N $l) {
$this
->setIdentifier('access:key')
->setScheme(self::SCHEME_ACCESS_KEY)
->setText($l->t('License'))
->setText($l->t('Access Key'))
->addParameters([
(new DefinitionParameter(self::SCHEME_ACCESS_KEY, $l->t('Access Key')))
->setTooltip($l->t('License Access Key'))
->setTooltip($l->t('Access Key'))
->setType(DefinitionParameter::VALUE_PASSWORD),
])
;
Expand Down
8 changes: 6 additions & 2 deletions lib/Backend/BeeSwarm.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ public function __construct(string $appName, IL10N $l, IConfig $config, LoggerIn
->setStorageClass('\OCA\Files_External_Ethswarm\Storage\BeeSwarm')
->setText($l->t('HejBit-Swarm'))
->addParameters([
(new DefinitionParameter(self::OPTION_HOST_URL, $l->t('Server URL')))
->setTooltip($l->t('License Server URL')),
(new DefinitionParameter(
self::OPTION_HOST_URL,
$l->t('Access Server'),
'app.hejbit.com'
))
->setTooltip($l->t('Access Server')),
])->addAuthScheme(License::SCHEME_ACCESS_KEY)
;
}
Expand Down

0 comments on commit d917608

Please sign in to comment.