Remove vault menu item
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9729de47f8
commit
ced3a15d00
@ -66,12 +66,6 @@ export default class SideBarComponent extends Component {
|
||||
type: 'resource',
|
||||
resource: 'iam/Permission',
|
||||
},
|
||||
{
|
||||
text: 'Vaults',
|
||||
action: 'list',
|
||||
type: 'resource',
|
||||
resource: 'vault/Vault',
|
||||
},
|
||||
{
|
||||
text: 'Computers',
|
||||
action: 'list',
|
||||
|
29
app/models/vault/Entry.model.js
Normal file
29
app/models/vault/Entry.model.js
Normal file
@ -0,0 +1,29 @@
|
||||
const { Model } = require('flitter-orm')
|
||||
|
||||
class EntryModel extends Model {
|
||||
static get services() {
|
||||
return [...super.services, 'models']
|
||||
}
|
||||
|
||||
static get schema() {
|
||||
return {
|
||||
active: { type: Boolean, default: true },
|
||||
vault_id: String,
|
||||
key: String,
|
||||
locked_value: String,
|
||||
}
|
||||
}
|
||||
|
||||
async to_api() {
|
||||
return {
|
||||
id: this.id,
|
||||
_id: this.id,
|
||||
vault_id: this.vault_id,
|
||||
key: this.key,
|
||||
locked_value: this.locked_value,
|
||||
active: this.active,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = exports = EntryModel
|
Loading…
Reference in New Issue
Block a user