From 543875c9a409f5fcdf8b38a3e720531e28523561 Mon Sep 17 00:00:00 2001 From: Alexey Koshelev Date: Mon, 5 Aug 2024 13:50:14 +0300 Subject: [PATCH] [PE] Add random type for transition --- apps/presentationeditor/main/app/view/Transitions.js | 9 +++++++-- apps/presentationeditor/main/locale/en.json | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/presentationeditor/main/app/view/Transitions.js b/apps/presentationeditor/main/app/view/Transitions.js index 7097a9e42e..57ea74e35c 100644 --- a/apps/presentationeditor/main/app/view/Transitions.js +++ b/apps/presentationeditor/main/app/view/Transitions.js @@ -129,7 +129,8 @@ define([ {title: this.textUnCover, imageUrl: "btn-transition-uncover", value: Asc.c_oAscSlideTransitionTypes.UnCover, id: Common.UI.getId()}, {title: this.textCover, imageUrl: "btn-transition-cover", value: Asc.c_oAscSlideTransitionTypes.Cover, id: Common.UI.getId()}, {title: this.textClock, imageUrl: "btn-transition-clock", value: Asc.c_oAscSlideTransitionTypes.Clock, id: Common.UI.getId()}, - {title: this.textZoom, imageUrl: "btn-transition-zoom", value: Asc.c_oAscSlideTransitionTypes.Zoom, id: Common.UI.getId(),cls: 'last-item'} + {title: this.textZoom, imageUrl: "btn-transition-zoom", value: Asc.c_oAscSlideTransitionTypes.Zoom, id: Common.UI.getId()}, + {title: this.textRandom, imageUrl: "btn-transition-random", value: Asc.c_oAscSlideTransitionTypes.Random, id: Common.UI.getId(), cls: 'last-item'} ]; this._arrEffectName.forEach(function (item) { item.tip = item.title; @@ -424,7 +425,10 @@ define([ if (!this.listEffects.isDisabled()) { this.numDelay.setDisabled(this.chDelay.getValue() !== 'checked'); - this.btnParameters.setDisabled(effect === Asc.c_oAscSlideTransitionTypes.None); + this.btnParameters.setDisabled( + effect === Asc.c_oAscSlideTransitionTypes.None || + effect === Asc.c_oAscSlideTransitionTypes.Random + ); this.btnPreview.setDisabled(effect === Asc.c_oAscSlideTransitionTypes.None); this.numDuration.setDisabled(effect === Asc.c_oAscSlideTransitionTypes.None); this.lblDuration.setDisabled(effect === Asc.c_oAscSlideTransitionTypes.None); @@ -448,6 +452,7 @@ define([ textCover: 'Cover', textClock: 'Clock', textZoom: 'Zoom', + textRandom: 'Random', textMorph: 'Morph', textSmoothly: 'Smoothly', textBlack: 'Through Black', diff --git a/apps/presentationeditor/main/locale/en.json b/apps/presentationeditor/main/locale/en.json index 222ef38006..9335bdd455 100644 --- a/apps/presentationeditor/main/locale/en.json +++ b/apps/presentationeditor/main/locale/en.json @@ -2861,6 +2861,7 @@ "PE.Views.Transitions.textWedge": "Wedge", "PE.Views.Transitions.textWipe": "Wipe", "PE.Views.Transitions.textZoom": "Zoom", + "PE.Views.Transitions.textRandom": "Random", "PE.Views.Transitions.textZoomIn": "Zoom In", "PE.Views.Transitions.textZoomOut": "Zoom Out", "PE.Views.Transitions.textZoomRotate": "Zoom and Rotate",