mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
UX: Check permissions before opening upload dialog #1131
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
2ebac920f2
commit
422256122d
4 changed files with 12 additions and 4 deletions
|
|
@ -245,7 +245,9 @@ export default {
|
|||
break;
|
||||
case "KeyU":
|
||||
ev.preventDefault();
|
||||
this.$event.publish("dialog.upload");
|
||||
if (this.$config.allow("files", "upload") && this.$config.feature("upload")) {
|
||||
this.$event.publish("dialog.upload");
|
||||
}
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -561,7 +561,9 @@ export default {
|
|||
break;
|
||||
case "KeyU":
|
||||
ev.preventDefault();
|
||||
this.$event.publish("dialog.upload");
|
||||
if (this.$config.allow("files", "upload") && this.$config.feature("upload")) {
|
||||
this.$event.publish("dialog.upload");
|
||||
}
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -330,7 +330,9 @@ export default {
|
|||
break;
|
||||
case "KeyU":
|
||||
ev.preventDefault();
|
||||
this.$event.publish("dialog.upload");
|
||||
if (this.$config.allow("files", "upload") && this.$config.feature("upload")) {
|
||||
this.$event.publish("dialog.upload");
|
||||
}
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -298,7 +298,9 @@ export default {
|
|||
break;
|
||||
case "KeyU":
|
||||
ev.preventDefault();
|
||||
this.$event.publish("dialog.upload");
|
||||
if (this.$config.allow("files", "upload") && this.$config.feature("upload")) {
|
||||
this.$event.publish("dialog.upload");
|
||||
}
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue