This commit is contained in:
Ragnar Stølsmark 2024-04-27 01:45:17 -07:00 committed by GitHub
commit c76182d511
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -739,7 +739,7 @@ class DetailsView extends View {
}
const input = $('<input/>')
.addClass('details__header-title-input')
.attr({ autocomplete: 'off', spellcheck: 'false', placeholder: 'Title' })
.attr({ autocomplete: 'off', spellcheck: 'false', placeholder: Locale.title })
.val(this.model.title);
input.bind({
blur: this.titleInputBlur.bind(this),
@ -792,7 +792,9 @@ class DetailsView extends View {
this.model.setField('Title', title);
this.entryUpdated(true);
}
const newTitle = $('<h1 class="details__header-title"></h1>').text(title || '(no title)');
const newTitle = $('<h1 class="details__header-title"></h1>').text(
title || `(${Locale.noTitle})`
);
this.$el.find('.details__header-title-input').replaceWith(newTitle);
}

View File

@ -19,7 +19,7 @@
</span>
{{/if}}
</i>
<h1 class="details__header-title">{{#if title}}{{title}}{{else}}(no title){{/if}}</h1>
<h1 class="details__header-title">{{#if title}}{{title}}{{else}}({{res 'noTitle'}}){{/if}}</h1>
{{#if customIcon}}
<div class="details__header-icon details__header-icon--icon"
{{#if canEditIcon}}title="{{res 'detSetIcon'}}"{{/if}}