Commit 9a25d4e6 authored by Henning Leutz's avatar Henning Leutz 🥋

feat: #522 - external opening -> move button to bar

parent 07d24bba
......@@ -204,6 +204,10 @@ define('controls/projects/project/site/Panel', [
load: function () {
this.refresh();
if (this.getSite().getAttribute('active') && this.$ButtonOpenWebsite) {
this.$ButtonOpenWebsite.show();
}
if (this.getActiveCategory()) {
return this.$onCategoryEnter(this.getActiveCategory());
}
......@@ -332,24 +336,6 @@ define('controls/projects/project/site/Panel', [
}
}).inject(this.getHeader());
this.$ButtonOpenWebsite = new QUIButton({
image : 'fa fa-external-link',
name : 'sort',
alt : Locale.get('quiqqer/quiqqer', 'project.sitemap.open.in.window'),
title : Locale.get('quiqqer/quiqqer', 'project.sitemap.open.in.window'),
styles: {
'border-left-width': 1,
'float' : 'right',
width : 40
},
events: {
onClick: this.openSiteInPopup
}
}).inject(this.getHeader());
this.$ButtonOpenWebsite.hide();
var self = this,
Site = this.getSite(),
Project = Site.getProject();
......@@ -422,6 +408,19 @@ define('controls/projects/project/site/Panel', [
self.addCategory(Category);
}
self.$ButtonOpenWebsite = new QUIButton({
textimage: 'fa fa-external-link',
name : 'sort',
text : Locale.get('quiqqer/quiqqer', 'project.sitemap.open.in.window'),
title : Locale.get('quiqqer/quiqqer', 'project.sitemap.open.in.window'),
events : {
onClick: self.openSiteInPopup
}
});
self.addButton(self.$ButtonOpenWebsite);
self.$ButtonOpenWebsite.hide();
if (Site.getAttribute('active')) {
self.$ButtonOpenWebsite.show();
}
......
......@@ -1754,7 +1754,7 @@
]]></de>
</locale>
<locale name="project.sitemap.open.in.window">
<de><![CDATA[Seite in Webseite öffnen]]></de>
<de><![CDATA[In Webseite öffnen]]></de>
</locale>
<locale name="control.server.button.add.text">
......
......@@ -1736,7 +1736,7 @@
<en><![CDATA[Filter...]]></en>
</locale>
<locale name="project.sitemap.open.in.window">
<en><![CDATA[Open page in web page]]></en>
<en><![CDATA[Open in website]]></en>
</locale>
<locale name="control.server.filter.submit">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment