mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-25 06:29:08 -06:00
display note type only for non-search notes
This commit is contained in:
@@ -63,15 +63,15 @@ const noteType = (function() {
|
||||
return found ? found.title : mime;
|
||||
}
|
||||
}
|
||||
else if (type === 'search') {
|
||||
return 'Saved search';
|
||||
}
|
||||
else if (type === 'render') {
|
||||
return 'Render HTML note';
|
||||
}
|
||||
else if (type === 'file') {
|
||||
return 'Attachment';
|
||||
}
|
||||
else if (type === 'search') {
|
||||
// ignore and do nothing, "type" will be hidden since it's not possible to switch to and from search
|
||||
}
|
||||
else {
|
||||
throwError('Unrecognized type: ' + type);
|
||||
}
|
||||
@@ -103,13 +103,6 @@ const noteType = (function() {
|
||||
save();
|
||||
};
|
||||
|
||||
this.selectSavedSearch = function() {
|
||||
self.type('search');
|
||||
self.mime('');
|
||||
|
||||
save();
|
||||
};
|
||||
|
||||
this.selectRender = function() {
|
||||
self.type('render');
|
||||
self.mime('');
|
||||
|
||||
Reference in New Issue
Block a user