mirror of
https://github.com/flarum/framework.git
synced 2025-05-21 22:36:01 +08:00
Finish admin permissions page and clean up everything
This commit is contained in:
@ -139,6 +139,15 @@ export default class Store {
|
||||
return records ? Object.keys(records).map(id => records[id]) : [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the given model from the store.
|
||||
*
|
||||
* @param {Model} model
|
||||
*/
|
||||
remove(model) {
|
||||
delete this.data[model.data.type][model.id()];
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new record of the given type.
|
||||
*
|
||||
|
Reference in New Issue
Block a user