Skip to content

Commit

Permalink
Fixed issue #16533: Double clicking on question overiew for read only…
Browse files Browse the repository at this point in the history
… user navigates to question editor

Checking permissions before switching to edit mode
  • Loading branch information
gabrieljenik authored and eddylackmann committed Jul 30, 2020
1 parent 8a7fc61 commit 9c1b0ac
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion assets/packages/questioneditor/build.min/css/main.css

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions assets/packages/questioneditor/build.min/js/questionedit.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion assets/packages/questioneditor/build/js/questionedit.js
Expand Up @@ -63,7 +63,7 @@
/******/
/******/ var hotApplyOnUpdate = true;
/******/ // eslint-disable-next-line no-unused-vars
/******/ var hotCurrentHash = "e6f672768fda6a39eefe";
/******/ var hotCurrentHash = "cbfb04e91ab9537167bf";
/******/ var hotRequestTimeout = 10000;
/******/ var hotCurrentModuleData = {};
/******/ var hotCurrentChildModule;
Expand Down Expand Up @@ -149397,6 +149397,7 @@ __webpack_require__.r(__webpack_exports__);
// Triggers
triggerEditQuestion: function triggerEditQuestion() {
var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
if (!this.allowSwitchEditing) return;

if (force === null) {
this.editQuestion = !this.editQuestion;
Expand Down

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/packages/questioneditor/src/App.vue
Expand Up @@ -373,6 +373,7 @@ export default {
},
// Triggers
triggerEditQuestion(force = null){
if(!this.allowSwitchEditing) return;
if(force === null) {
this.editQuestion = !this.editQuestion;
} else {
Expand Down

0 comments on commit 9c1b0ac

Please sign in to comment.