chore: 🤖 cleanup json creds code / tests (#1535)

This commit is contained in:
Randall Morey authored and GitHub committed 2022-12-16 15:06:19 -05:00
1 parent f1b7a9cd84
commit 51c1aba794
10 files changed
+117 -81

No files matched your search

+8
View File
@@ -18,6 +18,14 @@ export default class CredentialModel extends GeneratedCredentialModel {
return this.id.startsWith('cred');
}
/**
* True if type is `json`.
* @type {boolean}
*/
get isJSON() {
return this.type === 'json';
}
/**
* True if credential is an unknown type.
* @type {boolean}