ux(dashboard): added more shortcusts to v/edit panel, #6442

This commit is contained in:
Torkel Ödegaard
2016-11-02 17:03:14 +01:00
parent 95e7ead89b
commit 47aae7f1f2
4 changed files with 17 additions and 0 deletions

View File

@@ -83,6 +83,13 @@ function (angular, _, $) {
};
DashboardViewState.prototype.update = function(state) {
// implement toggle logic
if (this.state.fullscreen && state.fullscreen) {
if (this.state.edit === state.edit) {
state.fullscreen = !state.fullscreen;
}
}
// remember if editStateChanged
this.editStateChanged = state.edit !== this.state.edit;