Skip to content

Commit

Permalink
Merge branch '2024.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlabci committed Feb 5, 2025
2 parents 5b29acf + 875da75 commit 272b136
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 10 deletions.
24 changes: 17 additions & 7 deletions tine20/Filemanager/js/DuplicateFileUploadDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ Tine.Filemanager.DuplicateFileUploadDialog = Ext.extend(Ext.FormPanel, {
deferredRender: false,
buttonAlign: null,
bufferResize: 500,

applyToAll: false,

/**
Expand Down Expand Up @@ -75,17 +74,16 @@ Tine.Filemanager.DuplicateFileUploadDialog = Ext.extend(Ext.FormPanel, {
persona: Personas.WARNING
}), {
border: false,
layout: 'vbox',
layout: 'fit',
flex: 1,
layoutConfig: {
align:'stretch'
},
autoScroll: true,
style: 'padding: 10px 0px;',
items: [
{
xtype: 'label',
border: false,
cls: 'ext-mb-text',
html: this.questionText
html: this.questionText,
}
]
}]
Expand All @@ -107,6 +105,7 @@ Tine.Filemanager.DuplicateFileUploadDialog = Ext.extend(Ext.FormPanel, {
ctCls: 'checkbox-footbar',
hideLabel: true,
boxLabel: this.app.i18n._('Apply to All'),
ref: '../applyToAllCheckBox',
listeners: {
'check': function(checkbox, value) {
this.applyToAll = value;
Expand Down Expand Up @@ -161,6 +160,14 @@ Tine.Filemanager.DuplicateFileUploadDialog = Ext.extend(Ext.FormPanel, {

this.window.close();
},

doLayout: function() {
Tine.Filemanager.DuplicateFileUploadDialog.superclass.doLayout.apply(this, arguments);

if (this.rendered) {
this.applyToAllCheckBox.hidden = !this.window.contentPanelConstructorConfig.showApplyToAllCheckBox;
}
},
});

/**
Expand All @@ -169,9 +176,12 @@ Tine.Filemanager.DuplicateFileUploadDialog = Ext.extend(Ext.FormPanel, {
* @returns {null}
*/
Tine.Filemanager.DuplicateFileUploadDialog.openWindow = function (config) {
config.showApplyToAllCheckBox = Tine.Filemanager.DuplicateFileUploadDialog.openWindow.stack.length > 0;

if (Tine.Filemanager.DuplicateFileUploadDialog.openWindow.current) {
Tine.Filemanager.DuplicateFileUploadDialog.openWindow.current.contentPanelConstructorConfig.showApplyToAllCheckBox = true;
Tine.Filemanager.DuplicateFileUploadDialog.openWindow.stack.push(config);
return ;
return;
}

const constructor = 'Tine.Filemanager.DuplicateFileUploadDialog'
Expand Down
3 changes: 2 additions & 1 deletion tine20/Tinebase/css/flat.less
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,14 @@ span.x-tab-strip-text.tine-favicon {
.x-form-check-wrap {
input {
top: 0px;
position: relative;
}
line-height: 19px !important;
}
vertical-align: middle;

.x-form-cb-label {
border-left: 18px solid transparent;
border-left: 5px solid transparent;
vertical-align: middle;
}
}
Expand Down
1 change: 1 addition & 0 deletions tine20/Tinebase/js/ux/vue/PersonaContainer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const PersonaContainer = Ext.extend(Ext.BoxComponent, {
width: 100,
height: 200,
persona: Personas.INFO,
cls: 'dark-reverse',

onRender: async function (ct, position){
Ext.BoxComponent.superclass.onRender.call(this, ct, position)
Expand Down
3 changes: 2 additions & 1 deletion tine20/Tinebase/js/widgets/dialog/FileListDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ Ext.extend(Tine.widgets.dialog.FileListDialog, Ext.FormPanel, {
layout: 'fit',
flex: 1,
autoScroll: true,
style: 'padding: 10px 0px;',
items: [{
xtype: 'label',
border: false,
cls: 'ext-mb-text',
html: this.text
html: this.text,
}]
}]
}];
Expand Down
1 change: 0 additions & 1 deletion tine20/Tinebase/js/widgets/dialog/ResetPasswordDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ Tine.Tinebase.widgets.dialog.ResetPasswordDialog = Ext.extend(Tine.Tinebase.dial
}]
]
}, new PersonaContainer({
cls: 'dark-reverse',
region: 'west',
persona: Personas.QUESTION_INPUT
})]
Expand Down

0 comments on commit 272b136

Please sign in to comment.