display note type only for non-search notes

This commit is contained in:
azivner
2018-03-13 19:47:34 -04:00
parent 9c32f66329
commit db514e8f41
2 changed files with 4 additions and 13 deletions

View File

@@ -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('');