allow a setting controller to validate and revert a change (asynchronously)
This commit is contained in:
parent
612077125e
commit
308a6b419e
3 changed files with 22 additions and 8 deletions
|
@ -39,6 +39,10 @@ export default class SettingController {
|
|||
return null; // no override
|
||||
}
|
||||
|
||||
canChangeTo(level, roomId, newValue) {
|
||||
return Promise.resolve(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when the setting value has been changed.
|
||||
* @param {string} level The level at which the setting has been modified.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue