Skip to content

Commit

Permalink
Changes menu entry.
Browse files Browse the repository at this point in the history
We realized with our users that when the apps Text and ONLYOFFICE are installed in parallel, this is a bit confusing.

You can see a screenshot here, in french:
https://forge.liiib.re/indiehost/tech/plateforme/-/issues/217#note_9733

So we propose this change.

In relation to this change in [onlyoffice app](ONLYOFFICE/onlyoffice-nextcloud#617).

Signed-off-by: Pierre Ozoux <pierre@ozoux.net>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
  • Loading branch information
pierreozoux authored and backportbot-nextcloud[bot] committed May 20, 2022
1 parent ea06709 commit ed92e13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function register(IRegistrationContext $context): void {
public function boot(IBootContext $context): void {
$context->injectFn(function (ITemplateManager $templateManager, IL10N $l) {
$templateManager->registerTemplateFileCreator(function () use ($l) {
$markdownFile = new TemplateFileCreator(Application::APP_NAME, $l->t('New text document'), '.md');
$markdownFile = new TemplateFileCreator(Application::APP_NAME, $l->t('New text file'), '.md');
$markdownFile->addMimetype('text/markdown');
$markdownFile->addMimetype('text/plain');
$markdownFile->setIconClass('icon-filetype-text');
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ const registerFileCreate = () => {
// register the new menu entry
menu.addMenuEntry({
id: 'file',
displayName: t('text', 'New text document'),
templateName: t('text', 'New text document') + '.md',
displayName: t('text', 'New text file'),
templateName: t('text', 'New text file') + '.md',
iconClass: 'icon-filetype-text',
fileType: 'file',
actionHandler(name) {
Expand Down

0 comments on commit ed92e13

Please sign in to comment.