Skip to content

Commit

Permalink
[Thumbnail] Mirror image via thumbnail configuration (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
youwe-petervanderwal committed May 3, 2024
1 parent d93e54a commit 558c7c2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
32 changes: 32 additions & 0 deletions public/js/pimcore/settings/thumbnail/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,38 @@ pimcore.settings.thumbnail.items = {
return item;
},

itemMirror: function (panel, data, getName) {
const niceName = t("mirror");
if (typeof getName != "undefined" && getName) {
return niceName;
}

if (typeof data == "undefined") {
data = {};
}
const myId = Ext.id();

return new Ext.form.FormPanel({
id: myId,
style: "margin-top: 10px",
border: true,
bodyStyle: "padding: 10px;",
tbar: this.getTopBar(niceName, myId, panel),
items: [{
xtype: 'combo',
name: "mode",
fieldLabel: t("mode"),
width: 210,
store: [["horizontal", t("horizontal")], ["vertical", t("vertical")]],
value: data.mode
}, {
xtype: "hidden",
name: "type",
value: "mirror"
}]
});
},

itemSetBackgroundColor: function (panel, data, getName) {

var niceName = t("setbackgroundcolor");
Expand Down
2 changes: 2 additions & 0 deletions translations/admin_ext.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ setbackgroundcolor: Set Backgroundcolor
setbackgroundimage: Set Background Image
roundcorners: Round Corners
rotate: Rotate
mirror: Mirror
color: Color
angle: Angle
label_width: Label Width
Expand Down Expand Up @@ -325,6 +326,7 @@ min_value: min. Value
max_value: max. Value
increment: Increment Step
vertical: Vertical
horizontal: Horizontal
country: Country
zoom_level: Zoom level
map_type: Map type
Expand Down

0 comments on commit 558c7c2

Please sign in to comment.