mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-24 00:09:07 +01:00
added missing title on history change
This commit is contained in:
@@ -200,6 +200,15 @@ if (Sonia.repository.PermissionFormPanel){
|
||||
|
||||
}
|
||||
|
||||
if (Sonia.repository.ChangesetViewerPanel){
|
||||
|
||||
Ext.override(Sonia.repository.ChangesetViewerPanel,{
|
||||
// german ??
|
||||
changesetViewerTitleText: 'Commits {0}'
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
if (Sonia.repository.InfoPanel){
|
||||
|
||||
Ext.override(Sonia.repository.InfoPanel, {
|
||||
@@ -208,8 +217,7 @@ if (Sonia.repository.InfoPanel){
|
||||
contactText: 'Kontakt: ',
|
||||
urlText: 'Url: ',
|
||||
// german ??
|
||||
changesetViewerText: 'Commits',
|
||||
changesetViewerTitleText: 'Commits: {0}'
|
||||
changesetViewerText: 'Commits'
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -38,6 +38,8 @@ Sonia.repository.ChangesetViewerPanel = Ext.extend(Ext.Panel, {
|
||||
pageSize: 20,
|
||||
historyId: null,
|
||||
|
||||
changesetViewerTitleText: 'Commits {0}',
|
||||
|
||||
initComponent: function(){
|
||||
this.historyId = 'changesetviewer|' + this.repository.id;
|
||||
|
||||
@@ -66,6 +68,7 @@ Sonia.repository.ChangesetViewerPanel = Ext.extend(Ext.Panel, {
|
||||
});
|
||||
|
||||
var config = {
|
||||
title: String.format(this.changesetViewerTitleText, this.repository.name),
|
||||
items: [{
|
||||
xtype: 'repositoryChangesetViewerGrid',
|
||||
repository: this.repository,
|
||||
|
||||
@@ -44,7 +44,6 @@ Sonia.repository.InfoPanel = Ext.extend(Ext.Panel, {
|
||||
contactText: 'Contact: ',
|
||||
urlText: 'Url: ',
|
||||
changesetViewerText: 'Commits',
|
||||
changesetViewerTitleText: 'Commits {0}',
|
||||
|
||||
initComponent: function(){
|
||||
|
||||
@@ -151,7 +150,6 @@ Sonia.repository.InfoPanel = Ext.extend(Ext.Panel, {
|
||||
createChangesetViewer: function(){
|
||||
return {
|
||||
id: this.item.id + '-changesetViewer',
|
||||
title: String.format(this.changesetViewerTitleText, this.item.name),
|
||||
repository: this.item,
|
||||
xtype: 'repositoryChangesetViewerPanel',
|
||||
closable: true,
|
||||
|
||||
Reference in New Issue
Block a user