MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / filterKey

Function filterKey

src/app/keyring/KeyGrid.js:99–103  ·  view source on GitHub ↗

* @param {string} type key type 'public' or 'private' * @return {bool} true if key should be filtered out

(type)

Source from the content-addressed store, hash-verified

97 * @return {bool} true if key should be filtered out
98 */
99 filterKey(type) {
100 const filter = this.state.keyTypeFilter;
101 return filter === 'publickeys' && type !== 'public' ||
102 filter === 'keypairs' && type !== 'private';
103 }
104
105 showKeyDetails(index) {
106 this.setState({selectedKey: index});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected