Allow rotation while in duplicates mode
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
0d1aa9223b
commit
ac6fba87d3
@ -1595,14 +1595,18 @@
|
|||||||
setActions: function() {
|
setActions: function() {
|
||||||
if (this.user && this.user.maintainer) {
|
if (this.user && this.user.maintainer) {
|
||||||
let actions = [ "delete" ];
|
let actions = [ "delete" ];
|
||||||
|
|
||||||
if (this.mode == "duplicates") {
|
if (this.mode == "duplicates") {
|
||||||
actions.unshift("text-format");
|
actions.unshift("text-format");
|
||||||
} else if (this.mode == "trash") {
|
}
|
||||||
|
|
||||||
|
if (this.mode == "trash") {
|
||||||
actions.unshift("undo");
|
actions.unshift("undo");
|
||||||
} else {
|
} else {
|
||||||
actions.unshift("image:rotate-right");
|
actions.unshift("image:rotate-right");
|
||||||
actions.unshift("image:rotate-left");
|
actions.unshift("image:rotate-left");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.actions = actions;
|
this.actions = actions;
|
||||||
} else {
|
} else {
|
||||||
this.actions = [];
|
this.actions = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user